Skip to content

Commit

Permalink
Minor build fixes
Browse files Browse the repository at this point in the history
Need consistent case for USE_CXX in Makefile. Intel should
not add qopenmp unless compile_threaded is TRUE.
  • Loading branch information
jgfouca committed Apr 15, 2019
1 parent 09f1a33 commit ea16547
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cime/config/e3sm/machines/config_compilers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ for mct, etc.
<append DEBUG="TRUE"> -O0 -g </append>
</CFLAGS>
<CXXFLAGS>
<base> -std=c++11 -fp-model source -qopenmp </base>
<base> -std=c++11 -fp-model source </base>
<append compile_threaded="TRUE"> -qopenmp </append>
<append DEBUG="TRUE"> -O0 -g </append>
<append DEBUG="FALSE"> -O2 </append>
</CXXFLAGS>
Expand Down
2 changes: 1 addition & 1 deletion cime/scripts/Tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ endif
ifeq ($(strip $(PIO_VERSION)),1)
CPPDEFS += -DPIO1
else
USE_CXX = true
USE_CXX = TRUE
endif

ifeq (,$(SHAREDPATH))
Expand Down

0 comments on commit ea16547

Please sign in to comment.