Skip to content

Commit

Permalink
runtime/DRuntimeIntegrationTests.cmake: Pass D_EXTRA_FLAGS to ldmd
Browse files Browse the repository at this point in the history
D_EXTRA_FLAGS is the intended way to pass flags like -m32 to ldc so
make sure that its value is respected during the druntime tests.

Signed-off-by: Andrei Horodniceanu <[email protected]>
  • Loading branch information
the-horo committed Sep 11, 2024
1 parent dcf8555 commit 0dcf778
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtime/DRuntimeIntegrationTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ else()
list(REMOVE_ITEM testnames uuid)
endif()

string(REPLACE ";" " " LDMD_CMD "${LDMD_EXE_FULL} ${D_EXTRA_FLAGS}")

foreach(name ${testnames})
foreach(build debug release)
set(druntime_path_build ${druntime_path})
Expand All @@ -72,7 +74,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}
ROOT=${outdir} DMD=${LDMD_CMD} BUILD=${build}
DRUNTIME=${druntime_path_build} DRUNTIMESO=${shared_druntime_path_build}
SHARED=1 ${cflags_base} ${linkdl}
)
Expand Down

0 comments on commit 0dcf778

Please sign in to comment.