ports/editors/nvi/patches/patch-CMakeLists_txt

16 lines
554 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Avoid using flags not supported by in-tree gcc.
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
2023-10-01 03:21:04 +00:00
@@ -36,7 +36,9 @@ if (NOT APPLE)
add_compile_options($<$<CONFIG:Debug>:-Wsystem-headers>)
endif()
2023-08-16 22:26:55 +00:00
add_compile_options($<$<CONFIG:Release>:-Wuninitialized>)
+if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
2023-10-01 03:21:04 +00:00
add_compile_options($<$<CONFIG:Release>:-Wno-dangling-else>)
2023-08-16 22:26:55 +00:00
+endif()
2023-10-01 03:21:04 +00:00
add_compile_options(-Wno-string-compare)
2023-08-16 22:26:55 +00:00
add_compile_options(-Wstack-protector -fstack-protector)
add_compile_options(-Wstrict-aliasing -fstrict-aliasing)