update release compilation, add warnings
This commit is contained in:
+29
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user