We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62cb1a9 commit 4f66ddeCopy full SHA for 4f66dde
setup.py
@@ -55,12 +55,20 @@ def build_extension(self, ext):
55
56
tmp = os.environ.get("AR")
57
if "arm64-apple" in tmp:
58
- print("MACOS ARM!!!!")
59
tmp = os.environ.get("CMAKE_ARGS")
60
- print("heheheeh", tmp)
61
if tmp:
62
cmake_args += tmp.split(" ")
63
+ tmp = os.environ.get("CC")
+ print("C compiler", tmp)
64
+ if tmp:
65
+ cmake_args += ["-DCMAKE_C_COMPILER={}".format(tmp)]
66
+
67
+ tmp = os.environ.get("CXX")
68
+ print("CXX compiler", tmp)
69
70
+ cmake_args += ["-DCMAKE_CXX_COMPILER={}".format(tmp)]
71
72
env = os.environ.copy()
73
env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format(env.get('CXXFLAGS', ''),self.distribution.get_version())
74
tmp = os.getenv('CC_FOR_BUILD')
0 commit comments