mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 10:22:55 +00:00
add script to build with LTO and MinSizeRel quickly
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
6a660df94d
commit
9ac104dbc4
2 changed files with 14 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -17,3 +17,4 @@
|
|||
|
||||
apidocs
|
||||
build
|
||||
minsize
|
||||
|
|
13
scripts/minsize.sh
Executable file
13
scripts/minsize.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cwd="$(dirname $0)"
|
||||
|
||||
mkdir -p "$cwd/../minsize"
|
||||
cd "$cwd/../minsize"
|
||||
|
||||
export CFLAGS="$CFLAGS -flto" CXXFLAGS="$CXXFLAGS -flto"
|
||||
|
||||
cmake ../ -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=/usr
|
||||
make -j$(nproc)
|
Loading…
Add table
Reference in a new issue