Skip to content

Commit a0d66e8

Browse files
committed
#1: try changing compiler for macos in ci
1 parent 5f5153d commit a0d66e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ get_num_processors() {
3333
CURRENT_DIR="$(dirname $(realpath $0))"
3434
PARENT_DIR="$(dirname "$CURRENT_DIR")"
3535

36+
37+
if [ "$(uname)" == "Darwin" ]; then
38+
CC=(which clang)
39+
CXX=(which clang++)
40+
fi
41+
3642
CC="${CC:-$(which gcc || echo '')}"
3743
CXX="${CXX:-$(which g++ || echo '')}"
3844
GCOV="${GCOV:-$(which gcov || echo '')}"

0 commit comments

Comments
 (0)