guru/dev-lang/swift/files/swift-6.1/disable-libdispatch-werror.patch
Itai Ferber f0fee0b997
dev-lang/swift: add 6.1
Signed-off-by: Itai Ferber <itai@itaiferber.net>
2025-04-01 09:58:53 -04:00

13 lines
633 B
Diff

# Packages should not have `-Werror` unconditionally enabled.
--- a/swift-corelibs-libdispatch/cmake/modules/DispatchCompilerWarnings.cmake
+++ b/swift-corelibs-libdispatch/cmake/modules/DispatchCompilerWarnings.cmake
@@ -6,7 +6,6 @@
# so that we can use __popcnt64
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-fms-extensions>)
else()
- add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Werror>)
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wall>)
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wextra>)