summarylogtreecommitdiffstats
path: root/fix-build.patch
blob: 8139aa5f1c293135d043ffd64b293523ec6cceac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/setup.py b/setup.py
index 7bf83fc..0e4d37a 100644
--- a/setup.py
+++ b/setup.py
@@ -123,6 +123,7 @@ def get_macros_and_flags():
             else:
                 nvcc_flags = shlex.split(NVCC_FLAGS)
         extra_compile_args["nvcc"] = nvcc_flags
+    define_macros += [("GLOG_USE_GLOG_EXPORT", None)]

     if sys.platform == "win32":
         define_macros += [("torchvision_EXPORTS", None)]