You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[WASM] Set LIBC_INCLUDE_DIRECTORY for WASM to build SwiftGlibc properly (#9)
`LIBC_INCLUDE_DIRECTORY` is used to generate `glibc.modulemap`.
Currently the directory is set `/usr/include` but it's system header path and we should use `wasi-sdk` version.
set(SWIFT_SDK_WASM_ARCH_wasm32_LIBC_INCLUDE_DIRECTORY "${SWIFT_WASM_WASI_SDK_PATH}/share/sysroot/include"CACHESTRING"Path to C library headers")
330
+
set(SWIFT_SDK_WASM_ARCH_wasm32_LIBC_ARCHITECTURE_INCLUDE_DIRECTORY "${SWIFT_WASM_WASI_SDK_PATH}/sysroot/include"CACHESTRING"Path to C library architecture headers")
0 commit comments