Skip to content

Commit

Permalink
Add mixin to force clang and libcxx (#16)
Browse files Browse the repository at this point in the history
* Add mixin to do a clang build with libcxx

* Remove merge-install and quote grouped cxx_flags

* Switch to global CMake option FORCE_BUILD_VENDOR_PKG

* Don't hardcode clang version

* Rename libcxx mixin to clang-libcxx


Signed-off-by: Emerson Knapp <eknapp@amazon.com>
Signed-off-by: Steven! Ragnarök <steven@nuclearsandwich.com>
  • Loading branch information
emersonknapp authored and nuclearsandwich committed Mar 13, 2019
1 parent 0c2c8ad commit 9eb43d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions clang-libcxx.mixin
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
build:
clang-libcxx:
cmake-args:
- "-DCMAKE_C_COMPILER=clang"
- "-DCMAKE_CXX_COMPILER=clang++"
- "-DCMAKE_CXX_FLAGS='-stdlib=libc++ -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS'"
- "-DFORCE_BUILD_VENDOR_PKG=ON"
- "--no-warn-unused-cli"
1 change: 1 addition & 0 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ mixin:
- build-testing.mixin
- build-type.mixin
- ccache.mixin
- clang-libcxx.mixin
- coverage.mixin
- test-linters.mixin
- tsan.mixin

0 comments on commit 9eb43d2

Please sign in to comment.