We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 848f92e commit f04d6f4Copy full SHA for f04d6f4
scripts/compilerName.sh
@@ -14,8 +14,8 @@ if [[ $COMPILER = "gcc" ]]; then
14
;;
15
esac
16
17
- export C_COMPILER="/usr/bin/gcc"
18
- export CXX_COMPILER="/usr/bin/g++"
+ export C_COMPILER="$(which gcc)"
+ export CXX_COMPILER="$(which g++)"
19
elif [[ $COMPILER = "clang" ]]; then
20
case $(uname -v) in
21
*FreeBSD*)
@@ -28,6 +28,6 @@ elif [[ $COMPILER = "clang" ]]; then
28
29
30
31
- export C_COMPILER="/usr/bin/clang"
32
- export CXX_COMPILER="/usr/bin/clang++"
+ export C_COMPILER="$(which clang)"
+ export CXX_COMPILER="$(which clang++)"
33
fi
0 commit comments