mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-09 05:09:36 +00:00
Fix broken clang build on macOS
Build on macOS is failing due to unknown compiler options previously added to support gcc 12 on Fedora. Add "-Wno-unknown-warning-option" to silence this failure.
This commit is contained in:
@@ -186,9 +186,11 @@ $(boringssl_static_libs): boringssl.zip boringssl/.patched
|
|||||||
cd $(boringssl_install_dir)
|
cd $(boringssl_install_dir)
|
||||||
# The extra CMAKE_C_FLAGS are needed because otherwise boringssl fails to
|
# The extra CMAKE_C_FLAGS are needed because otherwise boringssl fails to
|
||||||
# compile in release mode on some systems with gcc 12 (e.g. Fedora).
|
# compile in release mode on some systems with gcc 12 (e.g. Fedora).
|
||||||
|
# In addition, guard these options with -Wno-unknown-warning-option to
|
||||||
|
# prevent clang from failing on them.
|
||||||
@cmake@ -DCMAKE_BUILD_TYPE=Release \
|
@cmake@ -DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_POSITION_INDEPENDENT_CODE=on \
|
-DCMAKE_POSITION_INDEPENDENT_CODE=on \
|
||||||
-DCMAKE_C_FLAGS="-Wno-stringop-overflow -Wno-array-bounds" \
|
-DCMAKE_C_FLAGS="-Wno-unknown-warning-option -Wno-stringop-overflow -Wno-array-bounds" \
|
||||||
-GNinja \
|
-GNinja \
|
||||||
..
|
..
|
||||||
@ninja@
|
@ninja@
|
||||||
|
Reference in New Issue
Block a user