Path: blob/main/python/py-numpy/src/patches/05-no-backtrace.patch
1393 views
--- native/numpy/core/setup_common.py 2022-09-09 06:36:30.443449000 -07001+++ wasm/numpy/core/setup_common.py 2022-09-23 17:24:28.115837013 -07002@@ -131,7 +131,14 @@34OPTIONAL_LOCALE_FUNCS = ["strtold_l"]5OPTIONAL_FILE_FUNCS = ["ftello", "fseeko", "fallocate"]6-OPTIONAL_MISC_FUNCS = ["backtrace", "madvise"]7+8+# On WASM the feature detection for backtrace doesn't work properly,9+# and I don't know any way to disable this via a command line flag,10+# so we change code here to not even look for backtrace. This is needed11+# with clang15 just to compile, since backtrace isn't declared. Of course,12+# WASM can't possible provide backtraces, as that violates their security13+# model, so it's best to not build C code that thinks this is available.14+OPTIONAL_MISC_FUNCS = ["madvise"] # ["backtrace", "madvise"]151617OPTIONAL_HEADERS = [181920