add_check_c_cxx_flag("-O${OPTIMIZATION_LEVEL}")
add_check_c_cxx_flag("-Wall")
-add_check_c_cxx_flag("-Werror")
add_check_c_cxx_flag("-Wno-unused-private-field")
add_check_c_flag("-fexceptions")
add_check_cxx_flag("-Wsuggest-override")
--asan build with ASan instrumentation
--ubsan build with UBSan instrumentation
--tsan build with TSan instrumentation
+ --werror build with -Werror
Optional Packages:
The following flags enable optional packages (disable with --no-<option name>).
unit_testing=default
valgrind=default
win64=default
+werror=default
abc_dir=default
antlr_dir=default
--tsan) tsan=ON;;
--no-tsan) tsan=OFF;;
+ --werror) werror=ON;;
+
--assertions) assertions=ON;;
--no-assertions) assertions=OFF;;
#--------------------------------------------------------------------------#
+if [ $werror != default ]; then
+ export CFLAGS=-Werror
+ export CXXFLAGS=-Werror
+fi
+
cmake_opts=""
[ $buildtype != default ] \