Skip to content

Commit fd3cebb

Browse files
committed
cmake: export the clang compiler path
1 parent 5eeb075 commit fd3cebb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ include(AddClang)
3737
if (NOT CMAKE_CXX_COMPILER MATCHES "clang" AND NOT DEFINED ENV{CODEQL_EXTRACTOR_CPP_ROOT})
3838
set(CMAKE_CXX_COMPILER "${CLANG_CMAKE_DIR}/../../../bin/clang++")
3939
endif()
40+
# Exported for the testsuite, which builds the original programs with it
41+
set(CPP2RUST_CXX_COMPILER "${CMAKE_CXX_COMPILER}" CACHE INTERNAL "")
4042

4143
message(STATUS "C++ flags: ${CMAKE_CXX_FLAGS}")
4244
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")

0 commit comments

Comments
 (0)