Skip to content

Commit 52d1748

Browse files
rbuchevan-charmworks
authored andcommitted
Add clang support to conv-mach-craype.sh
1 parent 9a7fad4 commit 52d1748

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/arch/common/conv-mach-craype.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
PGCC=`CC -V 2>&1 | grep pgCC`
33
ICPC=`CC -V 2>&1 | grep Intel`
4+
CLANG=`CC -V 2>&1 | grep 'clang'`
45
GNU=`CC -V 2>&1 | grep 'g++'`
56
CCE=`CC -V 2>&1 | grep 'Cray'`
67

@@ -42,6 +43,11 @@ then
4243
CMK_SEQ_CC="icc -fPIC "
4344
CMK_SEQ_CXX="icpc -fPIC "
4445
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'
4551
else # gcc
4652
CMK_SEQ_CC="gcc -fPIC"
4753
CMK_SEQ_CXX="g++ -fPIC "

0 commit comments

Comments
 (0)