Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

best way to compile with libc++ #127

Open
Macfly opened this issue Mar 7, 2021 · 0 comments
Open

best way to compile with libc++ #127

Macfly opened this issue Mar 7, 2021 · 0 comments

Comments

@Macfly
Copy link

Macfly commented Mar 7, 2021

what is the recommended way to use libc++ if compiling the project with Clang?
this way feel a bit strange...

if(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -v -pthread -fstandalone-debug")
    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi")
endif()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant