Skip to content

Commit 3caedb4

Browse files
committed
build: don't use cf-protection when targeting arm-apple-darwin
After two reports on IRC of issues building depends on an Apple M1 machine, it turns out that this option can't be used when targeting arm-apple-darwin. For now, just use it for x86_64-apple-darwin. ```bash Apple clang version 12.0.5 (clang-1205.0.22.9) Target: x86_64-apple-darwin20.4.0 error: option 'cf-protection=return' cannot be specified on this target error: option 'cf-protection=branch' cannot be specified on this target 2 errors generated. ```
1 parent 3ad1b88 commit 3caedb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

depends/packages/boost.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $(package)_config_libraries=filesystem,system,test
2626
$(package)_cxxflags=-std=c++17 -fvisibility=hidden
2727
$(package)_cxxflags_linux=-fPIC
2828
$(package)_cxxflags_android=-fPIC
29-
$(package)_cxxflags_darwin=-fcf-protection=full
29+
$(package)_cxxflags_x86_64_darwin=-fcf-protection=full
3030
endef
3131

3232
define $(package)_preprocess_cmds

0 commit comments

Comments
 (0)