File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ EXTRA_DIST = README.md LICENSE Configuration example.fq test
1919ACLOCAL_AMFLAGS = -I m4
2020AM_CPPFLAGS = -I $(top_srcdir ) /src
2121
22- CXXFLAGS = -O3 -DNDEBUG # default optimization on; override on cli
22+ # ## ADS: use AM_CXXFLAGS if these are needed
23+ # # AM_CXXFLAGS = -Wall -Wextra -Wpedantic -Wno-unknown-attributes
2324
2425TESTS = test/falco.test
2526TEST_EXTENSIONS = .test
Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ AM_INIT_AUTOMAKE([subdir-objects foreign])
2424AC_CONFIG_MACRO_DIR ( [ m4] )
2525AC_LANG ( C++ )
2626AC_PROG_CXX
27+
28+ # Set CXXFLAGS only if the user hasn't set them
29+ AS_IF ( [ test "x$CXXFLAGS_set" != "xset"] , [
30+ CXXFLAGS="-O3 -DNDEBUG"
31+ ] )
32+ AC_MSG_NOTICE ( [ CXXFLAGS is $CXXFLAGS] )
33+
2734AX_CXX_COMPILE_STDCXX_17 ( [ noext] , [ mandatory] )
2835AC_OPENMP ([ C++] ) dnl make sure we have openmp for multi-core in falco
2936
You can’t perform that action at this time.
0 commit comments