File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -68,18 +68,20 @@ def build_extension(self, ext):
6868 print ("CXX compiler" , tmp )
6969 if tmp :
7070 cmake_args += ["-DCMAKE_CXX_COMPILER={}" .format (tmp )]
71+ else :
72+ tmp = os .getenv ('CC_FOR_BUILD' )
73+ if tmp :
74+ print ("Setting c compiler to" , tmp )
75+ cmake_args += ["-DCMAKE_C_COMPILER=" + tmp ]
76+
77+ tmp = os .getenv ('CXX_FOR_BUILD' )
78+ if tmp :
79+ print ("Setting cxx compiler to" , tmp )
80+ cmake_args += ["-DCMAKE_CXX_COMPILER=" + tmp ]
7181
7282 env = os .environ .copy ()
7383 env ['CXXFLAGS' ] = '{} -DVERSION_INFO=\\ "{}\\ "' .format (env .get ('CXXFLAGS' , '' ),self .distribution .get_version ())
74- tmp = os .getenv ('CC_FOR_BUILD' )
75- if tmp :
76- print ("Setting c compiler to" , tmp )
77- cmake_args += ["-DCMAKE_C_COMPILER=" + tmp ]
7884
79- tmp = os .getenv ('CXX_FOR_BUILD' )
80- if tmp :
81- print ("Setting cxx compiler to" , tmp )
82- cmake_args += ["-DCMAKE_CXX_COMPILER=" + tmp ]
8385
8486
8587 tmp = os .getenv ("target_platform" )
You can’t perform that action at this time.
0 commit comments