Skip to content

Commit

Permalink
Changed compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
adaell committed Jul 27, 2021
1 parent b97e6c8 commit 137168e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ elif cc_name[:3] == 'g++':
cc_flags += " -Wno-unknown-pragmas -Wno-sign-compare -Wno-system-headers -Wno-long-long -Wno-strict-aliasing "
cc_flags += " -Wno-unused-function -Wno-narrowing"
cc_flags += " -Wno-stringop-truncation -Wno-deprecated-declarations --param=max-vartrack-size=100000000"
cc_optim = "-O3"
cc_optim = "-O2 -march=native"
#max-vartrack-size: avoid vartrack limit being exceeded with escriptcpp.cpp
cc_debug = "-g3 -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK -DSLOWSHARECHECK --param=max-vartrack-size=100000000"
#Removed because new netcdf doesn't seem to like it
Expand Down Expand Up @@ -322,7 +322,7 @@ elif cc_name == 'clang++':
cc_flags += "-Wno-unused-private-field -Wno-unknown-pragmas "
if env['trilinos'] is True:
cc_flags += "-Wno-unused-variable -Wno-exceptions -Wno-deprecated-declarations"
cc_optim = "-O3"
cc_optim = "-O2 -march=native"
cc_debug = "-ggdb3 -O0 -fdiagnostics-fixit-info -pedantic "
cc_debug += "-DDOASSERT -DDOPROF -DBOUNDS_CHECK -DSLOWSHARECHECK "
omp_flags = "-fopenmp"
Expand Down

0 comments on commit 137168e

Please sign in to comment.