Distro for Linux for WebAssembly
1diff --git a/compiler-rt/lib/builtins/enable_execute_stack.c b/compiler-rt/lib/builtins/enable_execute_stack.c
2index e18de4eaeb..8af0c21ade 100644
3--- a/compiler-rt/lib/builtins/enable_execute_stack.c
4+++ b/compiler-rt/lib/builtins/enable_execute_stack.c
5@@ -38,6 +38,7 @@
6 // and the next 48 bytes as executable. Since the stack is normally rw-
7 // that means changing the protection on those page(s) to rwx.
8
9+#ifndef __wasm__
10 COMPILER_RT_ABI void __enable_execute_stack(void *addr) {
11
12 #if _WIN32
13@@ -65,3 +66,4 @@
14 (void)mprotect((void *)startPage, length, PROT_READ | PROT_WRITE | PROT_EXEC);
15 #endif
16 }
17+#endif