Skip to content

Commit

Permalink
remove unnecessary whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewMeadows committed Sep 8, 2023
1 parent e47b487 commit 5bb1e47
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ case "$AUTOBUILD_PLATFORM" in
mkdir -p "build_debug"
pushd "build_debug"
cmake .. -G "$AUTOBUILD_WIN_CMAKE_GEN" -A "$AUTOBUILD_WIN_VSPLATFORM" -DCMAKE_INSTALL_PREFIX=$(cygpath -m $stage)/debug

cmake --build . --config Debug
cmake --install . --config Debug

Expand All @@ -68,15 +68,15 @@ case "$AUTOBUILD_PLATFORM" in
mkdir -p "build_release"
pushd "build_release"
cmake .. -G "$AUTOBUILD_WIN_CMAKE_GEN" -A "$AUTOBUILD_WIN_VSPLATFORM" -DCMAKE_INSTALL_PREFIX=$(cygpath -m $stage)/release

cmake --build . --config Release
cmake --install . --config Release

# conditionally run unit tests
if [ "${DISABLE_UNIT_TESTS:-0}" = "0" ]; then
ctest -C Release
fi

cp $stage/release/bin/*.dll $stage/lib/release/
cp $stage/release/lib/*.lib $stage/lib/release/
cp $stage/release/include/SDL2/*.h $stage/include/SDL2/
Expand Down Expand Up @@ -205,7 +205,7 @@ case "$AUTOBUILD_PLATFORM" in
# but which do nonetheless.
#
unset DISTCC_HOSTS CC CXX CFLAGS CPPFLAGS CXXFLAGS

# Default target per autobuild build --address-size
opts="${TARGET_OPTS:--m$AUTOBUILD_ADDRSIZE}"
DEBUG_COMMON_FLAGS="$opts -Og -g -fPIC -DPIC"
Expand Down Expand Up @@ -235,7 +235,7 @@ case "$AUTOBUILD_PLATFORM" in
# Incorporate special pre-processing flags
export CPPFLAGS="$TARGET_CPPFLAGS"
fi

# Force static linkage to libz by moving .sos out of the way
# (Libz is only packaging statics right now but keep this working.)
trap restore_sos EXIT
Expand All @@ -244,7 +244,7 @@ case "$AUTOBUILD_PLATFORM" in
mv -f "$solib" "$solib".disable
fi
done

mkdir -p "build_debug"
pushd "build_debug"
CFLAGS="$DEBUG_CFLAGS" \
Expand Down Expand Up @@ -281,7 +281,7 @@ case "$AUTOBUILD_PLATFORM" in
cp -a $PREFIX_RELEASE/lib/*.so* $stage/lib/release
cp -a $PREFIX_RELEASE/lib/libSDL2main.a $stage/lib/release
;;

*)
exit -1
;;
Expand Down

0 comments on commit 5bb1e47

Please sign in to comment.