Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/python/py-setuptools/src/patches/01-c++.patch
1067 views
1
--- native/setuptools/_distutils/unixccompiler.py 2022-11-30 22:02:14
2
+++ wasm/setuptools/_distutils/unixccompiler.py 2022-11-30 22:02:54
3
@@ -253,7 +253,10 @@
4
building_exe = target_desc == CCompiler.EXECUTABLE
5
linker = (self.linker_exe if building_exe else self.linker_so)[:]
6
7
- if target_lang == "c++" and self.compiler_cxx:
8
+ # For python-wasm the following completely messes up our
9
+ # use of wasm-ld; just using "zig cc" turns out to work fine
10
+ # with C++ code.
11
+ if False and target_lang == "c++" and self.compiler_cxx:
12
env, linker_ne = _split_env(linker)
13
aix, linker_na = _split_aix(linker_ne)
14
_, compiler_cxx_ne = _split_env(self.compiler_cxx)
15
16