Skip to content

Commit

Permalink
fix(build): prefer the native brew installation on Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Aug 17, 2023
1 parent 734dc64 commit 42559ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/luarocks/templates/luarocks_exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ OPENSSL_DIR=$root_path/$openssl_path

# we use system libyaml on macos
if [[ "$OSTYPE" == "darwin"* ]]; then
YAML_DIR=$(HOME=~$(whoami) brew --prefix)/opt/libyaml
YAML_DIR=$(HOME=~$(whoami) PATH=/opt/homebrew/bin:$PATH brew --prefix)/opt/libyaml
elif [[ -d $cross_deps_libyaml_path ]]; then
# TODO: is there a good way to use locations but doesn't break non-cross builds?
YAML_DIR=$root_path/$cross_deps_libyaml_path
Expand All @@ -40,7 +40,7 @@ else
fi

if [[ $CC != /* ]]; then
# point to our relative path of musl toolchain
# point to our relative path of managed toolchain
CC=$root_path/$CC
LD=$root_path/$LD
fi
Expand Down

0 comments on commit 42559ac

Please sign in to comment.