32 lines
553 B
Bash
Executable File
32 lines
553 B
Bash
Executable File
#!/bin/dash
|
|
|
|
mkdir -p bin/release
|
|
|
|
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 -march=native'
|
|
|
|
g++ -o bin/release/famt $language $optimizations $warnings $other -DNDEBUG -s *.cpp -lncursesw
|
|
#-static -lncursesw -ltinfo
|