Fix parallel druntime/Phobos build.

This commit is contained in:
David Nadlinger
2012-12-19 01:50:02 +01:00
parent 2988bc46e0
commit 03c77865d0

View File

@@ -384,6 +384,13 @@ macro(build_runtime d_flags c_flags ld_flags lib_suffix path_suffix outlist_targ
${DCRT_C}
)
# This is important as a "serialization point" in the build process so
# CMake doesn't invoke the dc()-generated command twice for files linked
# both into the druntime and Phobos libraries at the same time, which
# lead to corrupted library files. It is unclear whether this is really
# a CMake bug or not.
add_dependencies(phobos-ldc${target_suffix} ${lib_targets})
set_target_properties(
phobos-ldc${target_suffix} PROPERTIES
VERSION ${DMDFE_VERSION}