mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 05:06:17 +00:00
Fix build llvm on macos (#2877)
Perf support is available on Linux only.
This commit is contained in:
parent
f42ffe1d9d
commit
78be221594
|
@ -68,9 +68,11 @@ def build_llvm(llvm_dir, platform, backends, projects, use_clang=False, extra_fl
|
||||||
"-DLLVM_OPTIMIZED_TABLEGEN:BOOL=ON",
|
"-DLLVM_OPTIMIZED_TABLEGEN:BOOL=ON",
|
||||||
]
|
]
|
||||||
|
|
||||||
# ccache and perf support are not available on Windows
|
# ccache is not available on Windows
|
||||||
if not "windows" == platform:
|
if not "windows" == platform:
|
||||||
LLVM_COMPILE_OPTIONS.append("-DLLVM_CCACHE_BUILD:BOOL=ON")
|
LLVM_COMPILE_OPTIONS.append("-DLLVM_CCACHE_BUILD:BOOL=ON")
|
||||||
|
# perf support is available on Linux only
|
||||||
|
if "linux" == platform:
|
||||||
LLVM_COMPILE_OPTIONS.append("-DLLVM_USE_PERF:BOOL=ON")
|
LLVM_COMPILE_OPTIONS.append("-DLLVM_USE_PERF:BOOL=ON")
|
||||||
|
|
||||||
# use clang/clang++/lld. but macos doesn't support lld
|
# use clang/clang++/lld. but macos doesn't support lld
|
||||||
|
|
Loading…
Reference in New Issue
Block a user