Skip to content

Commit

Permalink
Merge branch 'jgfouca/cime/minor_compiler_fixes' into next (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 22, 2019
2 parents b52c3d3 + ea16547 commit 58fd508
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 58fd508

Please sign in to comment.