Skip to content

Commit

Permalink
better C++ compiler flags for all OSs -- related to #241 and #246
Browse files Browse the repository at this point in the history
  • Loading branch information
jr-leary7 committed Oct 13, 2024
1 parent 071e2bb commit 0dda01d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Makevars
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
CXX_STD = CXX11

## enable CPU speedups
CXXFLAGS += -O3 -march=native
PKG_CXXFLAGS += -O3 -march=native
PKG_CXX11FLAGS += -O3 -march=native
3 changes: 2 additions & 1 deletion src/Makevars.win
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
CXX_STD = CXX11

## enable CPU speedups
CXXFLAGS += -O3 -march=native
PKG_CXXFLAGS += -O3 -mtune=native
PKG_CXX11FLAGS += -O3 -mtune=native

0 comments on commit 0dda01d

Please sign in to comment.