Update sample workload's scripts to align with latest emcc (#609)
And enable auxiliary stack overflow/underflow check in JIT mode
This commit is contained in:
@ -100,6 +100,8 @@ def _impl(ctx):
|
||||
"STANDALONE_WASM=1",
|
||||
"-Wl,--export=__heap_base",
|
||||
"-Wl,--export=__data_end",
|
||||
"-Wl,--export=malloc",
|
||||
"-Wl,--export=free",
|
||||
],
|
||||
),
|
||||
]),
|
||||
@ -112,12 +114,15 @@ def _impl(ctx):
|
||||
ctx = ctx,
|
||||
features = features, # NEW
|
||||
cxx_builtin_include_directories = [
|
||||
"/opt/emsdk/upstream/emscripten/system/include/libcxx",
|
||||
"/opt/emsdk/upstream/emscripten/system/lib/libcxxabi/include",
|
||||
"/opt/emsdk/upstream/emscripten/system/include",
|
||||
"/opt/emsdk/upstream/emscripten/system/include/libc",
|
||||
"/opt/emsdk/upstream/emscripten/system/lib/libc/include",
|
||||
"/opt/emsdk/upstream/emscripten/system/lib/libcxx/include",
|
||||
"/opt/emsdk/upstream/emscripten/system/lib/libcxxabi/include",
|
||||
"/opt/emsdk/upstream/emscripten/system/lib/libc/musl/arch/emscripten",
|
||||
"/opt/emsdk/upstream/lib/clang/12.0.0/include/",
|
||||
"/opt/emsdk/upstream/emscripten/system/include/compat",
|
||||
"/opt/emsdk/upstream/emscripten/cache/sysroot/include",
|
||||
"/opt/emsdk/upstream/lib/clang/13.0.0/include",
|
||||
"$ENV{HOME}/.emscripten_cache/sysroot/include",
|
||||
],
|
||||
toolchain_identifier = "wasm-emsdk",
|
||||
host_system_name = "i686-unknown-linux-gnu",
|
||||
|
||||
Reference in New Issue
Block a user