update release compilation, add warnings

This commit is contained in:
vrd
2023-01-17 21:41:36 +02:00
parent 25bcd2e22b
commit e2cf4ba993
3 changed files with 70 additions and 41 deletions
+29 -1
View File
@@ -1 +1,29 @@
g++ -o bin/release/famt -std=gnu++20 -Ofast -flto -fipa-pta -fallow-store-data-races -fgcse-sm -fgcse-las -s -DNDEBUG *.cpp -lncursesw
#!/bin/dash
language='
-std=gnu++20
-fno-rtti
-fno-exceptions
-fno-non-call-exceptions'
optimizations='
-Ofast
-flto
-fipa-pta
-fallow-store-data-races
-fgcse-sm
-fgcse-las'
warnings='
-Wall
-Wextra
-Wpedantic
-Wmultiple-inheritance
-Wvirtual-inheritance' #-fanalyzer
# each global variable is only declared once per single object.
other='-fno-common -fno-fat-lto-objects'
g++ -o bin/release/famt $language $optimizations $warnings $other -DNDEBUG -s *.cpp -lncursesw
#-static -lncursesw -ltinfo