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
Copy file name to clipboardexpand all lines: build_tools/build_llvm_wasi.sh
+12-9
Original file line number
Diff line number
Diff line change
@@ -31,16 +31,17 @@ echo "*********************** BUILDING LLVM *********************************"
31
31
# hack to emit html wrappers
32
32
# https://stackoverflow.com/a/75596433/9045206
33
33
sed -i.bak 's/CMAKE_EXECUTABLE_SUFFIX ".js"/CMAKE_EXECUTABLE_SUFFIX ".html"/g'"$EMSDK/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake"
34
-
sed -i.bak 's/if(LLVM_ENABLE_PIC)/if(LLVM_ENABLE_PIC)\nreturn()\nendif()\nif(LLVM_ENABLE_PIC)/g'"${LLVM_SOURCE_DIR}/mlir/lib/ExecutionEngine/CMakeLists.txt"
35
34
35
+
# all emscripten settings here https://github.com/emscripten-core/emscripten/blob/main/src/settings.js
# sed -i.bak 's/if(LLVM_ENABLE_PIC)/if(LLVM_ENABLE_PIC)\nreturn()\nendif()\nif(LLVM_ENABLE_PIC)/g' "${LLVM_SOURCE_DIR}/mlir/lib/ExecutionEngine/CMakeLists.txt"
# Similarly, types can either be returned directly from WebAssembly functions or returned indirectly via a pointer parameter prepended to the parameter list.
0 commit comments