wiki:Libs/Libc++

libc++

The C++11 (and above) standard library implementation from the LLVM/Clang team.

bash

export CXX="clang++ -stdlib=libc++"

Makefile

cmake -G Ninja \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_CXX_STANDARD=17 \
      -DCMAKE_CXX_COMPILER_ARG1="-stdlib=libc++" \
      .. 

CMakeLists.txt

project(Foo)
file(GLOB SOURCES "src/*.cc")
add_executable(a.out ${SOURCES})

set(CMAKE_CXX_COMPILER clang++)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_COMPILER_ARG1 "-stdlib=libc++")
Last modified 7 months ago Last modified on Aug 2, 2019, 7:37:53 AM
Note: See TracWiki for help on using the wiki.