mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Check if -fno-delete-null-pointer-checks flag is supported
This commit is contained in:
@ -43,7 +43,11 @@ target_compile_definitions(test-main PUBLIC
|
|||||||
target_link_libraries(test-main gmock cppformat)
|
target_link_libraries(test-main gmock cppformat)
|
||||||
|
|
||||||
# Workaround GTest bug https://github.com/google/googletest/issues/705.
|
# Workaround GTest bug https://github.com/google/googletest/issues/705.
|
||||||
target_compile_options(test-main PUBLIC -fno-delete-null-pointer-checks)
|
check_cxx_compiler_flag(
|
||||||
|
-fno-delete-null-pointer-checks HAVE_FNO_DELETE_NULL_POINTER_CHECKS)
|
||||||
|
if (HAVE_FNO_DELETE_NULL_POINTER_CHECKS)
|
||||||
|
target_compile_options(test-main PUBLIC -fno-delete-null-pointer-checks)
|
||||||
|
endif ()
|
||||||
|
|
||||||
# relax pedantic flags for the tests
|
# relax pedantic flags for the tests
|
||||||
# TODO: fix warnings in tests to make this redundant. (e.g. -Wshadow,...)
|
# TODO: fix warnings in tests to make this redundant. (e.g. -Wshadow,...)
|
||||||
|
Reference in New Issue
Block a user