Skip to content

Commit 3e4441d

Browse files
committed
runtime/DRuntimeIntegrationTests: Support arguments in LDMD_EXE_FULL
Signed-off-by: Andrei Horodniceanu <[email protected]>
1 parent 3e3cd8c commit 3e4441d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

runtime/DRuntimeIntegrationTests.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ if(NOT GNU_MAKE_BIN)
55
return()
66
endif()
77

8+
# Support arguments in the LDMD_EXE_FULL argument like in:
9+
# -DLDMD_EXE_FULL=/path/to/bin/ldmd2;-m32
10+
string(REPLACE ";" " " LDMD_EXE_FULL_SPACES "${LDMD_EXE_FULL}")
11+
812
macro(get_subdirs result dir)
913
file(GLOB children RELATIVE ${dir} ${dir}/*)
1014
set(subdir_list "")
@@ -72,7 +76,7 @@ foreach(name ${testnames})
7276
)
7377
add_test(NAME ${fullname}
7478
COMMAND ${GNU_MAKE_BIN} -C ${PROJECT_SOURCE_DIR}/druntime/test/${name}
75-
ROOT=${outdir} DMD=${LDMD_EXE_FULL} BUILD=${build}
79+
ROOT=${outdir} DMD=${LDMD_EXE_FULL_SPACES} BUILD=${build}
7680
DRUNTIME=${druntime_path_build} DRUNTIMESO=${shared_druntime_path_build}
7781
SHARED=1 ${cflags_base} ${linkdl}
7882
)

0 commit comments

Comments
 (0)