Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try llvm #157

Merged
merged 10 commits into from
Aug 8, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ignore undefined symbols and build only WebAssembly target
  • Loading branch information
wolfv committed Aug 7, 2022
commit 12932ac9140c99eb559bdff477f9013f195f59c7
3 changes: 2 additions & 1 deletion recipes/recipes_emscripten/llvmdev/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export AR=emar

export EMCC_FORCE_STDLIBS=1
# set initial memory to 130 Mb
export LDFLAGS="$LDFLAGS -sTOTAL_MEMORY=131072000"
export LDFLAGS="$LDFLAGS -s TOTAL_MEMORY=131072000 -s ERROR_ON_UNDEFINED_SYMBOLS=0"
export CFLAGS="$CFLAGS"

# export LDFLAGS="$EM_FORGE_SIDE_MODULE_LDFLAGS -s EMCC_FORCE_STDLIBS=1 -s TOTAL_MEMORY=200000000"
Expand All @@ -58,6 +58,7 @@ cmake -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DLLVM_LINK_LLVM_DYLIB=OFF \
-DLLVM_BUILD_TOOLS=OFF \
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly \
-DLLVM_TARGETS_TO_BUILD=WebAssembly \
-DLLVM_TABLEGEN=${BUILD_PREFIX}/bin/llvm-tblgen \
${CMAKE_ARGS} \
-GNinja \
Expand Down