diff options
author | Carl Dong <contact@carldong.me> | 2020-05-22 17:03:46 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2020-05-27 17:39:51 -0400 |
commit | 0a33803f1c42c938cc7c6c5291ef1f9a1dfb491b (patch) | |
tree | 4f3c36d8728a62217586b465366a604358e7af03 | |
parent | 1ce74bcde341bbab538937544a0e4b4abccdc050 (diff) |
depends: boost: Use clang toolset if clang in CXX
-rw-r--r-- | depends/packages/boost.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/depends/packages/boost.mk b/depends/packages/boost.mk index f7fd28c0ea..3a7e605b4f 100644 --- a/depends/packages/boost.mk +++ b/depends/packages/boost.mk @@ -21,6 +21,9 @@ $(package)_config_opts_x86_64_android=address-model=64 $(package)_config_opts_armv7a_android=address-model=32 $(package)_toolset_$(host_os)=gcc $(package)_toolset_darwin=clang +ifneq (,$(findstring clang,$($(package)_cxx))) + $(package)_toolset_$(host_os)=clang +endif $(package)_archiver_$(host_os)=$($(package)_ar) $(package)_config_libraries=filesystem,system,thread,test $(package)_cxxflags=-std=c++11 -fvisibility=hidden |