Foo bar blah lbha
This commit is contained in:
parent
54aa02f0f4
commit
57f7d41ddf
|
@ -3,7 +3,7 @@
|
|||
# If any command errors, stop the script
|
||||
set -e
|
||||
|
||||
# Set up directories (mirrors build.bat)
|
||||
# Set up directories
|
||||
|
||||
ME="$(readlink -f "$0")"
|
||||
LOCATION="$(dirname "$ME")"
|
||||
|
@ -23,16 +23,13 @@ if [ -z "$BUILD_MODE" ]; then
|
|||
BUILD_MODE="-DDEV_BUILD"
|
||||
fi
|
||||
|
||||
# Get the OS specific flags
|
||||
chmod +rx "$BIN_ROOT/detect_os.sh"
|
||||
os=$("$BIN_ROOT/detect_os.sh")
|
||||
|
||||
WARNINGS="-Wno-write-strings -Wno-comment"
|
||||
|
||||
FLAGS="-D_GNU_SOURCE -fPIC -fpermissive $BUILD_MODE"
|
||||
INCLUDES="-I$SRC_ROOT -I$CUSTOM_ROOT"
|
||||
|
||||
# Execute
|
||||
echo g++ $WARNINGS $FLAGS $INCLUDES "$BIN_ROOT/4ed_build.cpp" -g -o "$BUILD_ROOT/build"
|
||||
g++ $WARNINGS $FLAGS $INCLUDES "$BIN_ROOT/4ed_build.cpp" -g -o "$BUILD_ROOT/build"
|
||||
pushd "$SRC_ROOT"
|
||||
"$BUILD_ROOT/build"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# If any command errors, stop the script
|
||||
set -e
|
||||
|
||||
# Set up directories (mirrors build.bat)
|
||||
# Set up directories
|
||||
# NOTE(yuval): Replaced readlink with realpath which works for both macOS and Linux
|
||||
ME="$(realpath "$0")"
|
||||
LOCATION="$(dirname "$ME")"
|
||||
|
@ -23,10 +23,6 @@ if [ -z "$BUILD_MODE" ]; then
|
|||
BUILD_MODE="-DDEV_BUILD"
|
||||
fi
|
||||
|
||||
# Get the OS specific flags
|
||||
chmod +rx "$BIN_ROOT/detect_os.sh"
|
||||
os=$("$BIN_ROOT/detect_os.sh")
|
||||
|
||||
WARNINGS="-Wno-write-strings -Wno-comment -Wno-null-dereference -Wno-logical-op-parentheses -Wno-switch"
|
||||
|
||||
FLAGS="-D_GNU_SOURCE -fPIC -fpermissive $BUILD_MODE"
|
||||
|
|
Loading…
Reference in New Issue