Disable -Werror in debug builds
This commit is contained in:
parent
175fac3292
commit
42d8a3f792
@ -20,11 +20,16 @@ add_definitions(
|
|||||||
-fno-rtti
|
-fno-rtti
|
||||||
#-g
|
#-g
|
||||||
#-fcolor-diagnostics
|
#-fcolor-diagnostics
|
||||||
-Werror
|
|
||||||
#--analyze
|
#--analyze
|
||||||
#-Os # GCC size optimization flag
|
#-Os # GCC size optimization flag
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||||
|
add_definitions(
|
||||||
|
-Werror
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
6
Makefile
6
Makefile
@ -62,3 +62,9 @@ gba:
|
|||||||
${ENV_RUN} ./scripts/setup_build gba
|
${ENV_RUN} ./scripts/setup_build gba
|
||||||
${ENV_RUN} rm -f build/current
|
${ENV_RUN} rm -f build/current
|
||||||
${ENV_RUN} ln -s gba-release build/current
|
${ENV_RUN} ln -s gba-release build/current
|
||||||
|
|
||||||
|
gba-debug:
|
||||||
|
${ENV_RUN} rm -rf build/gba-debug
|
||||||
|
${ENV_RUN} ./scripts/setup_build gba debug
|
||||||
|
${ENV_RUN} rm -f build/current
|
||||||
|
${ENV_RUN} ln -s gba-debug build/current
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
all: gba_build native_build native_debug_build windows_release windows_debug
|
all: gba_build gba_debug_build native_build native_debug_build windows_release windows_debug
|
||||||
|
|
||||||
MAKE=make -j
|
MAKE=make -j
|
||||||
|
|
||||||
@ -7,6 +7,11 @@ gba_build:
|
|||||||
${MAKE} -C gba-release ${ARGS}; \
|
${MAKE} -C gba-release ${ARGS}; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
gba_debug_build:
|
||||||
|
@if [ -d gba-debug ]; then \
|
||||||
|
${MAKE} -C gba-debug ${ARGS}; \
|
||||||
|
fi
|
||||||
|
|
||||||
native_build:
|
native_build:
|
||||||
@if [ -d ${HOST_ENV}-release ]; then \
|
@if [ -d ${HOST_ENV}-release ]; then \
|
||||||
${MAKE} -C ${HOST_ENV}-release ${ARGS}; \
|
${MAKE} -C ${HOST_ENV}-release ${ARGS}; \
|
||||||
|
Loading…
Reference in New Issue
Block a user