PGI Compiler: Set workaround macro definitions properly on shared compiler config
authorPhil Miller <mille121@illinois.edu>
Tue, 18 Oct 2011 16:02:10 +0000 (11:02 -0500)
committerPhil Miller <mille121@illinois.edu>
Tue, 18 Oct 2011 16:02:10 +0000 (11:02 -0500)
src/arch/common/cc-pgcc.sh

index 41420bf486bad22f3e019b1fd6960d5d504c59c5..4a7b49b045736688dc9efcf6f1db9d2a03f7c60a 100644 (file)
@@ -6,11 +6,11 @@ case `hostname` in
 esac
 
 CMK_CPP_C="pgcc -E "
-CMK_CC="pgcc -fPIC $CMK_DEFS "
+CMK_CC="pgcc -fPIC $CMK_DEFS  -DCMK_FIND_FIRST_OF_PREDICATE=1 -DCMK_NEEDS_OFFSETOF=1 "
 CMK_CC_RELIABLE="gcc "
 #CMK_CXX="pgCC --instantiate=used "
-CMK_CXX="pgCC -fPIC $CMK_DEFS "
-CMK_CXXPP="pgCC -E "
+CMK_CXX="pgCC -fPIC $CMK_DEFS  -DCMK_FIND_FIRST_OF_PREDICATE=1 -DCMK_NEEDS_OFFSETOF=1 "
+CMK_CXXPP="pgCC -E  -DCMK_FIND_FIRST_OF_PREDICATE=1 -DCMK_NEEDS_OFFSETOF=1 "
 CMK_LD="$CMK_CC "
 CMK_LDXX="$CMK_CXX "