Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/python/cpython/src/patches/10-setuptools-c++.patch
1067 views
1
--- native/lib/python3.11/site-packages/setuptools/_distutils/unixccompiler.py 2022-09-17 12:18:23.000000000 -0700
2
+++ wasm/lib/python3.11/site-packages/setuptools/_distutils/unixccompiler.py 2022-09-19 16:52:33.000000000 -0700
3
@@ -245,7 +245,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