Browse Source

remove any optimization flags when building in DEBUG mode

pull/4978/head
Martin Kroeker GitHub 1 year ago
parent
commit
2fdcf72281
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      Makefile.power

+ 5
- 0
Makefile.power View File

@@ -93,6 +93,11 @@ FCOMMON_OPT += -O2 -Mrecursive
endif
endif

ifeq ($(DEBUG), 1)
CCOMMON_OPT:= $(filter-out -O3 -O2 -O1 -Ofast, $(CCOMMON_OPT)) -O0
FCOMMON_OPT:= $(filter-out -O3 -O2 -O1 -Ofast, $(FCOMMON_OPT)) -O0
endif

ifeq ($(USE_OPENMP), 1)
ifneq ($(C_COMPILER), PGI)
CCOMMON_OPT += -DUSE_OPENMP -fopenmp


Loading…
Cancel
Save