Created
August 25, 2025 19:17
-
-
Save vickiegpt/0ef55741e80b4ac6f9b9b4cd60ae41e9 to your computer and use it in GitHub Desktop.
gcc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/python3 | |
| import sys, os | |
| os.system( | |
| "/opt/wasi-sdk/bin/clang-18 -frtti -D_WASI_EMULATED_MMAN -D_WASI_EMULATED_SIGNAL -D_WASI_EMULATED_PROCESS_CLOCKS --sysroot=/opt/wasix-libc/sysroot -Wno-unused-command-line-argument -lstdc++ -matomics -mbulk-memory -mmutable-globals -pthread -mthread-model posix -ftls-model=local-exec -fno-trapping-math -D_WASI_EMULATED_MMAN -D_WASI_EMULATED_SIGNAL -D_WASI_EMULATED_PROCESS_CLOCKS -Wl,--shared-memory -Wl,--max-memory=4294967296 -Wl,--import-memory -Wl,--export-dynamic -Wl,--export=__heap_base -Wl,--export=__stack_pointer -Wl,--export=__data_end -Wl,--export=__wasm_init_tls -Wl,--export=__wasm_signal -Wl,--export=__tls_size -Wl,--export=__tls_align -Wl,--export=__tls_base " | |
| + (" ".join(sys.argv[1:])) | |
| .replace("--end-group", "") | |
| .replace("-mbranch-protection=standard", "") | |
| .replace("-arch arm64", "") | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment