Skip to content

Commit

Permalink
Revert to LLVM v 16 in setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
KilianB committed Apr 26, 2024
1 parent b257a30 commit 7583aa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export BUN_DEPS_DIR=${BUN_DEPS_DIR:-$BUN_BASE_DIR/src/deps/}
export BUN_DEPS_OUT_DIR=${BUN_DEPS_OUT_DIR:-$BUN_BASE_DIR/src/deps/}

# this compiler detection could be better
export CC=${CC:-$(which clang-17 || which clang || which cc)}
export CXX=${CXX:-$(which clang++-17 || which clang++ || which c++)}
export CC=${CC:-$(which clang-16 || which clang || which cc)}
export CXX=${CXX:-$(which clang++-16 || which clang++ || which c++)}
export AR=${AR:-$(which llvm-ar || which ar)}
export CPUS=${CPUS:-$(nproc || sysctl -n hw.ncpu || echo 1)}

Expand Down
4 changes: 2 additions & 2 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ LLVM_VERSION=16

# this compiler detection could be better
# it is copy pasted from ./env.sh
CC=${CC:-$(which clang-17 || which clang || which cc)}
CXX=${CXX:-$(which clang++-17 || which clang++ || which c++)}
CC=${CC:-$(which clang-16 || which clang || which cc)}
CXX=${CXX:-$(which clang++-16 || which clang++ || which c++)}

test -n "$CC" || fail "missing LLVM $LLVM_VERSION (could not find clang)"
test -n "$CXX" || fail "missing LLVM $LLVM_VERSION (could not find clang++)"
Expand Down

0 comments on commit 7583aa1

Please sign in to comment.