File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ CURRENT_DIR="$(dirname $(realpath $0))"
3434PARENT_DIR=" $( dirname " $CURRENT_DIR " ) "
3535
3636
37- if [ " $( uname) " == " Darwin" ]; then
38- CC=(which clang)
39- CXX=(which clang++)
40- fi
41-
4237CC=" ${CC:- $(which gcc || echo ' ' )} "
4338CXX=" ${CXX:- $(which g++ || echo ' ' )} "
4439GCOV=" ${GCOV:- $(which gcov || echo ' ' )} "
@@ -60,6 +55,14 @@ FOO_RUN_TESTS=$(on_off ${FOO_RUN_TESTS:-OFF})
6055FOO_RUN_TESTS_FILTER=${FOO_RUN_TESTS_FILTER:- " " }
6156FOO_COVERAGE_REPORT=${FOO_COVERAGE_REPORT:- " ${FOO_OUTPUT_DIR} /cov" }
6257
58+ # On mac do not use default gcc
59+ if [ " $( uname) " == " Darwin" ]; then
60+ xcodebuild -find clang
61+ xcodebuild -find clang++
62+ CC=$( xcodebuild -find clang)
63+ CXX=$( xcodebuild -find clang++)
64+ fi
65+
6366# >> CLI args support
6467
6568# # HELP FUNCTION
You can’t perform that action at this time.
0 commit comments