Skip to content

Commit c788ab2

Browse files
committed
runtime/DRuntimeIntegrationTests.cmake: Pass D_EXTRA_FLAGS to ldmd
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 <a.horodniceanu@proton.me>
1 parent 926e27e commit c788ab2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runtime/DRuntimeIntegrationTests.cmake

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ else()
5656
list(REMOVE_ITEM testnames uuid)
5757
endif()
5858

59+
set(LDMD_CMD "${LDMD_EXE_FULL} ${D_EXTRA_ARGS}")
60+
5961
foreach(name ${testnames})
6062
foreach(build debug release)
6163
set(druntime_path_build ${druntime_path})
@@ -72,7 +74,7 @@ foreach(name ${testnames})
7274
)
7375
add_test(NAME ${fullname}
7476
COMMAND ${GNU_MAKE_BIN} -C ${PROJECT_SOURCE_DIR}/druntime/test/${name}
75-
ROOT=${outdir} DMD=${LDMD_EXE_FULL} BUILD=${build}
77+
ROOT=${outdir} DMD=${LDMD_CMD} BUILD=${build}
7678
DRUNTIME=${druntime_path_build} DRUNTIMESO=${shared_druntime_path_build}
7779
SHARED=1 ${cflags_base} ${linkdl}
7880
)

0 commit comments

Comments
 (0)