Use CFLAGS and CMAKE_C_FLAGS

This commit is contained in:
Clownacy 2020-03-14 23:18:30 +00:00
parent 4f49fe8706
commit cc4a58fbac
2 changed files with 3 additions and 3 deletions

View file

@ -126,7 +126,7 @@ before_script:
if [ "$BUILD_SYSTEM" == "cmake" ]; then if [ "$BUILD_SYSTEM" == "cmake" ]; then
# Make build directory and generate CMake build files # Make build directory and generate CMake build files
mkdir -p ${CMAKE_BUILD_DIR} && cd ${CMAKE_BUILD_DIR} mkdir -p ${CMAKE_BUILD_DIR} && cd ${CMAKE_BUILD_DIR}
cmake .. -DCMAKE_BUILD_TYPE=Release -DFIX_BUGS=ON -DRENDERER=$RENDERER -DCMAKE_CXX_FLAGS="-Wall -Wextra -pedantic" cmake .. -DCMAKE_BUILD_TYPE=Release -DFIX_BUGS=ON -DRENDERER=$RENDERER -DCMAKE_C_FLAGS="-Wall -Wextra -pedantic" -DCMAKE_CXX_FLAGS="-Wall -Wextra -pedantic"
cd .. cd ..
fi fi
@ -139,7 +139,7 @@ script:
cd .. cd ..
else else
# Make build # Make build
make -j $JOBS FIX_BUGS=1 RELEASE=1 RENDERER=$RENDERER CXXFLAGS="-Wall -Wextra -pedantic" make -j $JOBS FIX_BUGS=1 RELEASE=1 RENDERER=$RENDERER CFLAGS="-Wall -Wextra -pedantic" CXXFLAGS="-Wall -Wextra -pedantic"
fi fi
after_success: after_success:

View file

@ -108,7 +108,7 @@ Name | Function
`STATIC=1` | Produce a statically-linked executable (good for Windows builds, so you don't need to bundle DLL files) `STATIC=1` | Produce a statically-linked executable (good for Windows builds, so you don't need to bundle DLL files)
`WINDOWS=1` | Build for Windows `WINDOWS=1` | Build for Windows
You can pass your own compiler flags by defining `CXXFLAGS`. You can pass your own compiler flags by defining `CFLAGS` and `CXXFLAGS`.
Once built, the executables can be found in the `game_english`/`game_japanese` folder, depending on the selected language. Once built, the executables can be found in the `game_english`/`game_japanese` folder, depending on the selected language.