Skip to content

Commit

Permalink
Renamed ldruntime back to druntime-ldc, as the name is hardcoded in t…
Browse files Browse the repository at this point in the history
…he source.

Also took the opportunity to rename liblphobos2 to libphobos2-ldc as discussed on IRC, because this highlights the relationship to DMD's libphobos2 better e.g. when browsing through the file system.
  • Loading branch information
dnadlinger committed Dec 4, 2011
1 parent 74d7562 commit 0b18b34
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions ldc2_install.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ default:
"-I@INCLUDE_INSTALL_DIR@/ldc",
"-I@INCLUDE_INSTALL_DIR@",
"-L-L@CMAKE_INSTALL_LIBDIR@", @MUTILIB_ADDITIONAL_INSTALL_PATH@
"-defaultlib=lphobos2",
"-debuglib=lphobos2"
"-defaultlib=phobos2-ldc",
"-debuglib=phobos2-ldc"
];
};
4 changes: 2 additions & 2 deletions ldc2_phobos.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ default:
"-I@RUNTIME_DIR@/src",
"-I@PHOBOS2_DIR@/",
"-L-L@PROJECT_BINARY_DIR@/../lib", @MUTILIB_ADDITIONAL_PATH@
"-defaultlib=lphobos2",
"-debuglib=lphobos2"
"-defaultlib=phobos2-ldc",
"-debuglib=phobos2-ldc"
];
};
14 changes: 7 additions & 7 deletions runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ set(PHOBOS2_DIR ${PROJECT_SOURCE_DIR}/phobos CACHE PATH "phobos2 source dir")
set(RUNTIME_CC druntime-core)
set(RUNTIME_GC druntime-gc-basic)
set(RUNTIME_DC druntime-rt-ldc)
set(RUNTIME_AIO ldruntime)
set(RUNTIME_AIO druntime-ldc)
set(RUNTIME_DC_DIR ${RUNTIME_DIR}/src/rt)
set(RUNTIME_GC_DIR ${RUNTIME_DIR}/src/gc)
set(RUNTIME_INCLUDE ${RUNTIME_DIR}/src)
Expand Down Expand Up @@ -298,7 +298,7 @@ macro(build_runtime d_flags c_flags ld_flags lib_suffix path_suffix)
dc(${f} PHOBOS2_O PHOBOS2_BC "${d_flags};-I${PHOBOS2_DIR}" ${PHOBOS2_DIR} "${target_suffix}")
endforeach(f)

add_library(lphobos2${target_suffix} ${D_LIBRARY_TYPE}
add_library(phobos2-ldc${target_suffix} ${D_LIBRARY_TYPE}
${ZLIB_C}
${PHOBOS2_O}
${CORE_O}
Expand All @@ -307,19 +307,19 @@ macro(build_runtime d_flags c_flags ld_flags lib_suffix path_suffix)
${DCRT_O}
${DCRT_C}
)
add_dependencies(lphobos2${target_suffix} runtime)
add_dependencies(phobos2-ldc${target_suffix} runtime)
set_target_properties(
lphobos2${target_suffix} PROPERTIES
OUTPUT_NAME lphobos2${lib_suffix}
phobos2-ldc${target_suffix} PROPERTIES
OUTPUT_NAME phobos2-ldc${lib_suffix}
LINKER_LANGUAGE C
ARCHIVE_OUTPUT_DIRECTORY ${output_path}
LIBRARY_OUTPUT_DIRECTORY ${output_path}
RUNTIME_OUTPUT_DIRECTORY ${output_path}
COMPILE_FLAGS "${c_flags}"
LINK_FLAGS "${ld_flags}"
)
install(TARGETS lphobos2${target_suffix} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${path_suffix})
add_dependencies(phobos2 DEPENDS lphobos2${target_suffix})
install(TARGETS phobos2-ldc${target_suffix} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${path_suffix})
add_dependencies(phobos2 DEPENDS phobos2-ldc${target_suffix})
endif(PHOBOS2_DIR)
endmacro(build_runtime d_flags c_flags ld_flags lib_suffix path_suffix)

Expand Down

0 comments on commit 0b18b34

Please sign in to comment.