Skip to content

Commit

Permalink
[druntime: Pass CMAKE_C[XX]_COMPILER as CC/CXX for make-based integra…
Browse files Browse the repository at this point in the history
…tion tests]

To propagate the C[++] compilers at CMake configure-time to test-time.
  • Loading branch information
kinke committed Sep 13, 2024
1 parent 7f31303 commit 48b38b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.4.3)
project(runtime C ASM)
project(runtime C ASM CXX) # CXX for integration tests only

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR})

Expand Down
1 change: 1 addition & 0 deletions runtime/DRuntimeIntegrationTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ foreach(name ${testnames})
add_test(NAME ${fullname}
COMMAND ${GNU_MAKE_BIN} -C ${PROJECT_SOURCE_DIR}/druntime/test/${name}
ROOT=${outdir} DMD=${LDMD_EXE_FULL} BUILD=${build} SHARED=1
CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER}
DRUNTIME=${druntime_path_build} DRUNTIMESO=${shared_druntime_path_build}
CFLAGS_BASE=${cflags_base} DFLAGS_BASE=${dflags_base} ${linkdl}
)
Expand Down

0 comments on commit 48b38b2

Please sign in to comment.