Unverified Commit c09cc696 authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Remove `#pragma comment(linker, "/include:_register_ops")` (#8414)

parent 53670211
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#else #else
#ifdef _MSC_VER #ifdef _MSC_VER
#define VISION_INLINE_VARIABLE __declspec(selectany) #define VISION_INLINE_VARIABLE __declspec(selectany)
#define HINT_MSVC_LINKER_INCLUDE_SYMBOL
#else #else
#define VISION_INLINE_VARIABLE __attribute__((weak)) #define VISION_INLINE_VARIABLE __attribute__((weak))
#endif #endif
......
...@@ -8,9 +8,5 @@ VISION_API int64_t cuda_version(); ...@@ -8,9 +8,5 @@ VISION_API int64_t cuda_version();
namespace detail { namespace detail {
extern "C" VISION_INLINE_VARIABLE auto _register_ops = &cuda_version; extern "C" VISION_INLINE_VARIABLE auto _register_ops = &cuda_version;
#ifdef HINT_MSVC_LINKER_INCLUDE_SYMBOL
#pragma comment(linker, "/include:_register_ops")
#endif
} // namespace detail } // namespace detail
} // namespace vision } // namespace vision
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment