Skip to content

Commit

Permalink
When building with clang-14 it seems that we have to add some paths!
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Aug 12, 2023
1 parent 3ce04be commit 94a5122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pinned_toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set(CMAKE_C_COMPILER ${CLANG_DIR}/bin/clang)
set(CMAKE_CXX_COMPILER ${CLANG_DIR}/bin/clang++)
set(LLVM_ENABLE_LIBCXX 1)

set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CLANG_DIR}/include/c++/v1 /usr/local/include /usr/include)
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CLANG_DIR}/include/c++/v1 ${CLANG_DIR}/include/x86_64-unknown-linux-gnu/c++/v1 /usr/local/include /usr/include)

set(CMAKE_C_FLAGS_INIT "-D_FORTIFY_SOURCE=2 -fstack-protector-strong -fpie")
set(CMAKE_CXX_FLAGS_INIT "-nostdinc++ -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fpie")
Expand All @@ -17,4 +17,4 @@ endif()

set(CMAKE_SHARED_LINKER_FLAGS_INIT "-stdlib=libc++ -nostdlib++")
set(CMAKE_MODULE_LINKER_FLAGS_INIT "-stdlib=libc++ -nostdlib++")
set(CMAKE_CXX_STANDARD_LIBRARIES "${CLANG_DIR}/lib/libc++.a ${CLANG_DIR}/lib/libc++abi.a")
set(CMAKE_CXX_STANDARD_LIBRARIES "${CLANG_DIR}/lib/x86_64-unknown-linux-gnu/libc++.a ${CLANG_DIR}/lib/x86_64-unknown-linux-gnu/libc++abi.a")

0 comments on commit 94a5122

Please sign in to comment.