mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-07-11 15:03:33 +00:00
Compare commits
2 Commits
cf5b8901fa
...
b6ffb706df
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b6ffb706df | ||
![]() |
91dd6f0a0e |
|
@ -66,6 +66,7 @@ def build_llvm(llvm_dir, platform, backends, projects, use_clang=False, extra_fl
|
||||||
"-DLLVM_INCLUDE_UTILS:BOOL=OFF",
|
"-DLLVM_INCLUDE_UTILS:BOOL=OFF",
|
||||||
"-DLLVM_INCLUDE_TESTS:BOOL=OFF",
|
"-DLLVM_INCLUDE_TESTS:BOOL=OFF",
|
||||||
"-DLLVM_OPTIMIZED_TABLEGEN:BOOL=ON",
|
"-DLLVM_OPTIMIZED_TABLEGEN:BOOL=ON",
|
||||||
|
"-DLLVM_STATIC_LINK_CXX_STDLIB=ON",
|
||||||
]
|
]
|
||||||
|
|
||||||
# ccache is not available on Windows
|
# ccache is not available on Windows
|
||||||
|
|
|
@ -391,6 +391,12 @@ if (NOT MSVC)
|
||||||
target_link_libraries (wamrc ssp.a ws2_32)
|
target_link_libraries (wamrc ssp.a ws2_32)
|
||||||
else()
|
else()
|
||||||
target_link_libraries (wamrc -ldl)
|
target_link_libraries (wamrc -ldl)
|
||||||
|
# Link libc++ statically to reduce the runtime dependency
|
||||||
|
target_link_libraries (wamrc -static-libstdc++)
|
||||||
|
# If not on macOS, link libgcc statically
|
||||||
|
if (NOT APPLE)
|
||||||
|
target_link_libraries (wamrc -static-libgcc)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
target_link_libraries (wamrc aotclib vmlib ${lib_lldb} ${WAMRC_LINK_LLVM_LIBS} ${lib_ubsan}
|
target_link_libraries (wamrc aotclib vmlib ${lib_lldb} ${WAMRC_LINK_LLVM_LIBS} ${lib_ubsan}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user