Skip to content

Commit

Permalink
wamrc: build: macos: Prioritize for defined LLVM_DIR environment vari…
Browse files Browse the repository at this point in the history
…able

This is because macOS's homebrew sometimes introduces the cutting edge
version of Formulae.
So, we need to make a room for user specified LLVM_DIR here.

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored and edsiper committed Apr 8, 2024
1 parent 2bc526b commit dadfb45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wamrc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ if (NOT MSVC)
endif ()

# Searching homebrewed LLVM automatically on macOS.
if(FLB_SYSTEM_MACOS)
if(FLB_SYSTEM_MACOS AND NOT DEFINED ENV{LLVM_DIR})
execute_process(
COMMAND brew --prefix llvm
RESULT_VARIABLE HOMEBREW_LLVM
Expand Down

0 comments on commit dadfb45

Please sign in to comment.