[PATCH] D25491: [libcxx] Use C++14 when building libc++ with musl

Hal Finkel via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 12 11:47:00 PDT 2016


hfinkel added inline comments.


================
Comment at: CMakeLists.txt:327
 # Required flags ==============================================================
 set(LIBCXX_STANDARD_VER c++11 CACHE INTERNAL "internal option to change build dialect")
 add_compile_flags_if_supported(-std=${LIBCXX_STANDARD_VER})
----------------
EricWF wrote:
> phosek wrote:
> > EricWF wrote:
> > > Why not just set `LIBCXX_STANDARD_VER` differently instead of replacing it after the fact?
> > I totally missed it; this change was a part of a downstream patch we were using for building Fuchsia toolchain and it predates this option. Using this option, I can override the dialect only for our build, which is perfectly fine for Fuchsia since we default to C++14. I'd be happy to abandon this patch unless you want to persist that setting for musl?
> Since we support MUSL it would be nice if libc++ built out of the box. Making the option persistent for MUSL makes the most sense to me.
We should add a comment here, or where ever this logic ends up going, to explain why this is needed.


Repository:
  rL LLVM

https://reviews.llvm.org/D25491





More information about the cfe-commits mailing list