Skip to content

Commit 78be221

Browse files
authored
Fix build llvm on macos (#2877)
Perf support is available on Linux only.
1 parent f42ffe1 commit 78be221

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build-scripts/build_llvm.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ def build_llvm(llvm_dir, platform, backends, projects, use_clang=False, extra_fl
6868
"-DLLVM_OPTIMIZED_TABLEGEN:BOOL=ON",
6969
]
7070

71-
# ccache and perf support are not available on Windows
71+
# ccache is not available on Windows
7272
if not "windows" == platform:
7373
LLVM_COMPILE_OPTIONS.append("-DLLVM_CCACHE_BUILD:BOOL=ON")
74+
# perf support is available on Linux only
75+
if "linux" == platform:
7476
LLVM_COMPILE_OPTIONS.append("-DLLVM_USE_PERF:BOOL=ON")
7577

7678
# use clang/clang++/lld. but macos doesn't support lld

0 commit comments

Comments
 (0)