makefile: -g and -O3 are exclusively applied by DEBUG flag
This commit is contained in:
parent
e282f210f6
commit
45b298d460
1 changed files with 4 additions and 2 deletions
|
|
@ -8,16 +8,18 @@ BLOCKSIZE?=32
|
|||
|
||||
TERMSPEC?=code_gen/terms.input
|
||||
|
||||
flags = -cpp -DBLOCKSIZE=$(BLOCKSIZE) -Wall -O3 -ffree-line-length-0 -fdefault-integer-8 -fdefault-double-8 -fdefault-real-8 -march=native
|
||||
|
||||
ifdef CHECK
|
||||
flags += -fcheck=all
|
||||
endif
|
||||
|
||||
ifdef DEBUG
|
||||
flags += -g
|
||||
else
|
||||
flags += -O3
|
||||
endif
|
||||
|
||||
flags += -cpp -DBLOCKSIZE=$(BLOCKSIZE) -Wall -ffree-line-length-0 -fdefault-integer-8 -fdefault-double-8 -fdefault-real-8 -march=native
|
||||
|
||||
compiler = mpif90
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue