AMPI: Add fsglobals (filesystem) and pipglobals (Process-in-Process) privatization...
[charm.git] / src / arch / common / cc-clang.sh
1 # Assumes Clang C/C++ compiler:
2 CMK_CPP_CHARM="cpp -P"
3 CMK_CPP_C="clang$CMK_COMPILER_SUFFIX"
4 CMK_CC="clang$CMK_COMPILER_SUFFIX"
5 CMK_LD="clang$CMK_COMPILER_SUFFIX"
6 CMK_CXX="clang++$CMK_COMPILER_SUFFIX"
7 CMK_LDXX="clang++$CMK_COMPILER_SUFFIX"
8
9 CMK_CPP_C_FLAGS="-E"
10
11 if [ "$CMK_COMPILER" = "msvc" ]; then
12   CMK_AR='ar q'
13   CMK_LIBS='-lws2_32 -lpsapi -lkernel32'
14   CMK_SEQ_LIBS="$CMK_LIBS"
15
16   CMK_NATIVE_CC="$CMK_CC"
17   CMK_NATIVE_LD="$CMK_LD"
18   CMK_NATIVE_CXX="$CMK_CXX"
19   CMK_NATIVE_LDXX="$CMK_LDXX"
20 fi
21
22 CMK_PIE='-fPIE'
23
24 CMK_COMPILER='clang'
25 CMK_WARNINGS_ARE_ERRORS="-Werror"