File tree Expand file tree Collapse file tree 1 file changed +9
-14
lines changed
Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/bash
22set -euo pipefail
33
4+ SOURCE=$( readlink -f " ${BASH_SOURCE[0]} " )
5+ DIR=$( dirname " ${SOURCE} " )
46
5- SORUCE=$( readlink -f ${BASH_SOURCE[0]} )
6- DIR=$( dirname ${SORUCE} )
7-
8- cd ${DIR} /../;
9- mkdir _build || true 2> /dev/null;
10- cd _build;
11- cmake -DCMAKE_BUILD_TYPE=Debug \
12- -DCMAKE_C_FLAGS=" -Wall -Wextra -Werror -Wno-unused-variable -Wno-unused-function -Wno-unused-parameter -Wno-unused-but-set-variable -Wpedantic -Wformat=2 -Wformat-security -Wshadow -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Wredundant-decls -Wnested-externs -Wmissing-include-dirs" \
13- -DCMAKE_CXX_FLAGS=" -Wall -Wextra -Werror -Wno-unused-variable -Wno-unused-function -Wno-unused-parameter -Wno-unused-but-set-variable -Wpedantic -Wformat=2 -Wformat-security -Wshadow -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Wredundant-decls -Wnested-externs -Wmissing-include-dirs" \
14- ..
15- make -j;
16- cd ${DIR} ;
17-
7+ cd " ${DIR} " /../
8+ mkdir -p _build
9+ cd _build
10+ cmake ..
11+ make -j
12+ cd " ${DIR} "
You can’t perform that action at this time.
0 commit comments