Skip to content

Commit

Permalink
druntime: Enable stdcpp integration tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed May 24, 2020
1 parent d651f88 commit b8512eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions runtime/StandaloneDRuntimeTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ else()
endif()
endif()

if("${TARGET_SYSTEM}" MATCHES "MSVC")
set(cflags_base "CFLAGS_BASE=")
else()
set(cflags_base "CFLAGS_BASE=-Wall -Wl,-rpath,${CMAKE_BINARY_DIR}/lib${LIB_SUFFIX}")
endif()

if("${TARGET_SYSTEM}" MATCHES "FreeBSD|DragonFly")
set(linkdl "")
else()
Expand All @@ -51,8 +57,7 @@ foreach(name ${testnames})
COMMAND ${GNU_MAKE_BIN} -C ${PROJECT_SOURCE_DIR}/druntime/test/${name}
ROOT=${outdir} DMD=${LDMD_EXE_FULL} MODEL=default
DRUNTIME=${druntime_path} DRUNTIMESO=${shared_druntime_path}
CFLAGS_BASE=-Wall\ -Wl,-rpath,${CMAKE_BINARY_DIR}/lib${LIB_SUFFIX}
${linkdl}
${cflags_base} ${linkdl}
)
set_tests_properties(druntime-test-${name}
PROPERTIES DEPENDS clean-druntime-test-${name}
Expand Down
2 changes: 1 addition & 1 deletion runtime/druntime
Submodule druntime updated 1 files
+32 −7 test/stdcpp/Makefile

0 comments on commit b8512eb

Please sign in to comment.