mirror of
https://bitbucket.org/stellabellumswg/swg-main.git
synced 2026-01-16 23:04:24 -05:00
workaround: always build miff in debug mode if we're using clang, for now
This commit is contained in:
@@ -10,7 +10,7 @@ CLUSTERNAME=
|
||||
NODEID=
|
||||
DSRC_DIR=
|
||||
DATA_DIR=
|
||||
GIT_URL="https://darth-swg@bitbucket.org/stellabellumswg/dsrc.git"
|
||||
GIT_URL="https://bitbucket.org/stellabellumswg/"
|
||||
GIT_REPO_SRC=${GIT_URL}src.git
|
||||
GIT_REPO_DSRC=${GIT_URL}dsrc.git
|
||||
GIT_REPO_CONFIG=${GIT_URL}configs.git
|
||||
@@ -107,11 +107,43 @@ if [[ $response =~ ^(yes|y| ) ]]; then
|
||||
|
||||
make -j$(nproc)
|
||||
|
||||
if [[ $MODE =~ ^(Release) ]]; then
|
||||
strip -s bin/*
|
||||
fi
|
||||
cd $basedir
|
||||
|
||||
cd $basedir
|
||||
# Miff isn't playing nice with clang in release mode
|
||||
if [ $CC = "clang" ]; then
|
||||
if [ ! -d "miff" ]; then
|
||||
cd miff
|
||||
fi
|
||||
|
||||
cd miff
|
||||
|
||||
if [ $(arch) == "x86_64" ]; then
|
||||
export LDFLAGS=-L/usr/lib32
|
||||
export CMAKE_PREFIX_PATH="/usr/lib32:/lib32:/usr/lib/i386-linux-gnu:/usr/include/i386-linux-gnu"
|
||||
|
||||
cmake -DCMAKE_C_FLAGS=-m32 -D_MIFF=1 \
|
||||
-DCMAKE_CXX_FLAGS=-m32 \
|
||||
-DCMAKE_EXE_LINKER_FLAGS=-m32 \
|
||||
-DCMAKE_MODULE_LINKER_FLAGS=-m32 \
|
||||
-DCMAKE_SHARED_LINKER_FLAGS=-m32 \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
$basedir/src
|
||||
else
|
||||
cmake $basedir/src -DCMAKE_BUILD_TYPE=Debug -D_MIFF=1
|
||||
fi
|
||||
|
||||
cd engine/client/application/Miff
|
||||
make -j$(nproc)
|
||||
|
||||
cd $basedir
|
||||
mv miff/bin/Miff build/bin/
|
||||
fi;
|
||||
|
||||
if [ $MODE = "Release" ] || [ $MODE = "MINSIZEREL" ]; then
|
||||
strip -s $basedir/build/bin/*
|
||||
fi
|
||||
|
||||
cd $basedir;
|
||||
fi
|
||||
|
||||
read -p "Do you want to build the config environment now? (y/n) " response
|
||||
|
||||
Reference in New Issue
Block a user