Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/python/py-numpy/src/patches/02-cxx_compiler.patch
1067 views
1
--- native/numpy/distutils/command/build_ext.py 2022-09-09 06:36:30.000000000 -0700
2
+++ wasm/numpy/distutils/command/build_ext.py 2022-09-19 20:32:04.000000000 -0700
3
@@ -510,6 +510,11 @@
4
**kws)
5
if cxx_sources:
6
log.info("compiling C++ sources")
7
+ # python-wasm: the heuristics that numpy uses to
8
+ # convert the c compiler to a c++ compiler don't work
9
+ # for us since we use "cowasm-cc", so we manually
10
+ # make the change here:
11
+ cxx_compiler.compiler_so[1] = 'c++'
12
c_objects += cxx_compiler.compile(
13
cxx_sources,
14
output_dir=output_dir,
15
16