cxx: default to using libcxx where possible
using libcxx alleviates some compilation errors under newer clang and c++17.
This commit is contained in:
parent
8a83b07ea0
commit
157ff8962c
@ -24,6 +24,10 @@ append_compile_flag ("-std=c++1z")
|
|||||||
append_compile_flag ("-fpermissive")
|
append_compile_flag ("-fpermissive")
|
||||||
append_compile_flag ("/std:c++latest")
|
append_compile_flag ("/std:c++latest")
|
||||||
|
|
||||||
|
# try to use clangs libc++ under the assumption that gcc will fail this test
|
||||||
|
# and clang will pass (if it is present). this is necessary because some
|
||||||
|
# libstdc++ headers don't behave well under c++17/clang.
|
||||||
|
append_compile_flag ("-stdlib=libc++")
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# find the gcc or clang filesystem library and append to libs if needed
|
# find the gcc or clang filesystem library and append to libs if needed
|
||||||
|
Loading…
Reference in New Issue
Block a user