Skip to content

Commit

Permalink
Merge branch 'jgfouca/cime/minor_compiler_fixes' (PR #2864)
Browse files Browse the repository at this point in the history
Minor build fixes

Need consistent case for USE_CXX in Makefile (Restores cxxlib flag for
PIO2). Intel should not add qopenmp unless compile_threaded is TRUE.

Fixes #2858

[BFB]

* origin/jgfouca/cime/minor_compiler_fixes:
  Minor build fixes
  • Loading branch information
jgfouca committed Apr 24, 2019
2 parents f262b35 + 43f6864 commit 8b4e6cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 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 scripts/Tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,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 8b4e6cc

Please sign in to comment.