Skip to content

Commit

Permalink
Fix build llvm on macos (#2877)
Browse files Browse the repository at this point in the history
Perf support is available on Linux only.
  • Loading branch information
wenyongh authored Dec 7, 2023
1 parent f42ffe1 commit 78be221
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build-scripts/build_llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ def build_llvm(llvm_dir, platform, backends, projects, use_clang=False, extra_fl
"-DLLVM_OPTIMIZED_TABLEGEN:BOOL=ON",
]

# ccache and perf support are not available on Windows
# ccache is not available on Windows
if not "windows" == platform:
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")

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

0 comments on commit 78be221

Please sign in to comment.