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 9a7fad4 commit 52d1748Copy full SHA for 52d1748
src/arch/common/conv-mach-craype.sh
@@ -1,6 +1,7 @@
1
2
PGCC=`CC -V 2>&1 | grep pgCC`
3
ICPC=`CC -V 2>&1 | grep Intel`
4
+CLANG=`CC -V 2>&1 | grep 'clang'`
5
GNU=`CC -V 2>&1 | grep 'g++'`
6
CCE=`CC -V 2>&1 | grep 'Cray'`
7
@@ -42,6 +43,11 @@ then
42
43
CMK_SEQ_CC="icc -fPIC "
44
CMK_SEQ_CXX="icpc -fPIC "
45
CMK_COMPILER='icc'
46
+elif test -n "$CLANG"
47
+then
48
+CMK_SEQ_CC="clang -fPIC "
49
+CMK_SEQ_CXX="clang++ -fPIC "
50
+CMK_COMPILER='clang'
51
else # gcc
52
CMK_SEQ_CC="gcc -fPIC"
53
CMK_SEQ_CXX="g++ -fPIC "
0 commit comments