aboutsummarylogtreecommitdiffstats
path: root/torchvision-0_17_1-fix-build.patch
blob: da2f5af76c242949662f78c4c88bc5c778661629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- setup.py.old	2024-11-03 16:51:21.891305430 +0100
+++ setup.py	2024-11-03 16:52:16.875113504 +0100
@@ -116,7 +116,7 @@
 
 
 def get_macros_and_flags():
-    define_macros = []
+    define_macros = [("GLOG_USE_GLOG_EXPORT", None)]
     extra_compile_args = {"cxx": []}
     if BUILD_CUDA_SOURCES:
         if IS_ROCM:
@@ -488,6 +488,7 @@
                 ],
                 extra_compile_args=["-std=c++17"] if os.name != "nt" else ["/std:c++17", "/MP"],
                 extra_link_args=["-std=c++17" if os.name != "nt" else "/std:c++17"],
+                define_macros=[("GLOG_USE_GLOG_EXPORT", None)],
             )
         )
 
@@ -536,6 +537,7 @@
                     "nppicc",
                 ],
                 extra_compile_args=extra_compile_args,
+                define_macros=[("GLOG_USE_GLOG_EXPORT", None)],
             )
         )