Skip to content

Commit

Permalink
runtime/DRuntimeIntegrationTests: Support arguments in LDMD_EXE_FULL
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Horodniceanu <[email protected]>
  • Loading branch information
the-horo committed Sep 1, 2024
1 parent 3e3cd8c commit 3e4441d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runtime/DRuntimeIntegrationTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ if(NOT GNU_MAKE_BIN)
return()
endif()

# Support arguments in the LDMD_EXE_FULL argument like in:
# -DLDMD_EXE_FULL=/path/to/bin/ldmd2;-m32
string(REPLACE ";" " " LDMD_EXE_FULL_SPACES "${LDMD_EXE_FULL}")

macro(get_subdirs result dir)
file(GLOB children RELATIVE ${dir} ${dir}/*)
set(subdir_list "")
Expand Down Expand Up @@ -72,7 +76,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_EXE_FULL_SPACES} BUILD=${build}
DRUNTIME=${druntime_path_build} DRUNTIMESO=${shared_druntime_path_build}
SHARED=1 ${cflags_base} ${linkdl}
)
Expand Down

0 comments on commit 3e4441d

Please sign in to comment.