Skip to content

Commit 44f8d41

Browse files
authored
Merge pull request #68 from mapbox/upgrade-clang
use latest mason+llvm / make CXX overridable
2 parents bbe2421 + e6e217f commit 44f8d41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/setup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
set -eu
44
set -o pipefail
55

6-
export MASON_RELEASE="${MASON_RELEASE:-v0.9.0}"
7-
export MASON_LLVM_RELEASE="${MASON_LLVM_RELEASE:-4.0.0}"
6+
export MASON_RELEASE="${MASON_RELEASE:-v0.14.1}"
7+
export MASON_LLVM_RELEASE="${MASON_LLVM_RELEASE:-4.0.1}"
88

99
PLATFORM=$(uname | tr A-Z a-z)
1010
if [[ ${PLATFORM} == 'darwin' ]]; then
@@ -69,7 +69,7 @@ function run() {
6969
#
7070

7171
echo "export PATH=${llvm_toolchain_dir}/bin:$(pwd)/.mason:$(pwd)/mason_packages/.link/bin:"'${PATH}' > ${config}
72-
echo "export CXX=${llvm_toolchain_dir}/bin/clang++" >> ${config}
72+
echo "export CXX=${CXX:-${llvm_toolchain_dir}/bin/clang++}" >> ${config}
7373
echo "export MASON_RELEASE=${MASON_RELEASE}" >> ${config}
7474
echo "export MASON_LLVM_RELEASE=${MASON_LLVM_RELEASE}" >> ${config}
7575
# https://github.com/google/sanitizers/wiki/AddressSanitizerAsDso

0 commit comments

Comments
 (0)