Skip to content

Commit

Permalink
Disable warnings-as-errors in gcc linux release build
Browse files Browse the repository at this point in the history
  • Loading branch information
grunt-lucas committed Jan 26, 2025
1 parent 9af77be commit 67770b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Porytiles-0.x/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ if(MSVC)
else()
# Cannot enable -Wextra in 0.x since some of our header-only dependencies throw warnings
# that break the build.
add_compile_options(-Wall -Wpedantic -Werror)
#
# Remove warnings-as-errors temporarily to stop GCC from complaining about one of the header libs.
# add_compile_options(-Wall -Wpedantic -Werror)
add_compile_options(-Wall -Wpedantic)
endif()

# Enable testing
Expand Down
4 changes: 2 additions & 2 deletions Scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ linux_amd64_gcc() {
mkdir -p "$output_directory/porytiles-$mode"
pushd Porytiles-0.x
export CXX="g++"
cmake --compile-no-warning-as-error -DWARNINGS_AS_ERRORS=OFF -DCMAKE_COMPILE_WARNING_AS_ERROR=false -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_FIND_FRAMEWORK=NEVER -B build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_FIND_FRAMEWORK=NEVER -B build
pushd build
cmake --compile-no-warning-as-error -DWARNINGS_AS_ERRORS=OFF --build .
cmake --build .
popd
popd
package_release
Expand Down

0 comments on commit 67770b9

Please sign in to comment.