summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-01-13 08:46:04 (GMT)
committerGitHub <noreply@github.com>2022-01-13 08:46:04 (GMT)
commita6ca8eee2254762422f90cf94fbaac34f85db780 (patch)
tree6017b6edc8445b18afc5ec23c5e75a4bdb983ba5 /Tools
parent1de60155d5d01be2924e72fb68dd13d4fd00acd7 (diff)
downloadcpython-a6ca8eee2254762422f90cf94fbaac34f85db780.zip
cpython-a6ca8eee2254762422f90cf94fbaac34f85db780.tar.gz
cpython-a6ca8eee2254762422f90cf94fbaac34f85db780.tar.bz2
bpo-46315: Add ifdef HAVE_ feature checks for WASI compatibility (GH-30507)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/wasm/config.site-wasm32-wasi17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tools/wasm/config.site-wasm32-wasi b/Tools/wasm/config.site-wasm32-wasi
new file mode 100644
index 0000000..be26c46
--- /dev/null
+++ b/Tools/wasm/config.site-wasm32-wasi
@@ -0,0 +1,17 @@
+# config.site override for cross compiling to wasm32-wasi platform
+#
+# Written by Christian Heimes <christian@python.org>
+# Partly based on pyodide's pyconfig.undefs.h file.
+
+
+# cannot be detected in cross builds
+ac_cv_buggy_getaddrinfo=no
+
+# WASI has no /dev/pt*
+ac_cv_file__dev_ptmx=no
+ac_cv_file__dev_ptc=no
+
+# dummy readelf, WASI build does not need readelf.
+ac_cv_prog_ac_ct_READELF=true
+
+ac_cv_func_eventfd=no