diff options
author | fanquake <fanquake@gmail.com> | 2021-05-26 13:08:16 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-05-26 13:08:16 +0800 |
commit | 3caedb4c0351f99d1ef74e8fc9d4e276361ce90a (patch) | |
tree | d32f974d1196ad7efc6bf47b441c0aecc65ef341 | |
parent | 3ad1b8899bfbf87ca4f06c20e8285bc8be31bbe8 (diff) |
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.
```
-rw-r--r-- | depends/packages/boost.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/depends/packages/boost.mk b/depends/packages/boost.mk index 6b3b293140..f879d176f5 100644 --- a/depends/packages/boost.mk +++ b/depends/packages/boost.mk @@ -26,7 +26,7 @@ $(package)_config_libraries=filesystem,system,test $(package)_cxxflags=-std=c++17 -fvisibility=hidden $(package)_cxxflags_linux=-fPIC $(package)_cxxflags_android=-fPIC -$(package)_cxxflags_darwin=-fcf-protection=full +$(package)_cxxflags_x86_64_darwin=-fcf-protection=full endef define $(package)_preprocess_cmds |