Permalink
Browse files

Removed two (!) D1/Tango runtime build systems.

As discussed on IRC, Bob has been the default (and recommended) way to build Tango for LDC for quite some time now. Support for it in the CMake-based build system just created a big maintenance burden for (almost) no benefits. Besides, the build system was currently broken anyway.

The makefiles seemed to support building *.bc libs for Tango though, which Bob probably doesn't, which might be worth keeping in mind.
  • Loading branch information...
1 parent 018c477 commit 38d1bf4cc8ce99401eef22aeb56f5e12c254d905 @klickverbot klickverbot committed Dec 4, 2011
Showing with 113 additions and 13,102 deletions.
  1. +3 −1 CMakeLists.txt
  2. +93 −147 runtime/CMakeLists.txt
  3. +17 −23 runtime/README
  4. +0 −24 runtime/build-sharedlibs.sh
  5. +0 −24 runtime/build.sh
  6. +0 −29 runtime/import/ldc/cstdarg.di
  7. +0 −413 runtime/import/ldc/intrinsics.di
  8. +0 −17 runtime/import/ldc/llvmasm.di
  9. +0 −414 runtime/internal/aApply.d
  10. +0 −975 runtime/internal/aApplyR.d
  11. +0 −798 runtime/internal/aaA.d
  12. +0 −610 runtime/internal/adi.d
  13. +0 −153 runtime/internal/arrayInit.d
  14. +0 −196 runtime/internal/cast.d
  15. +0 −164 runtime/internal/critical.c
  16. +0 −284 runtime/internal/dmain2.d
  17. +0 −430 runtime/internal/eh.d
  18. +0 −1,465 runtime/internal/genobj.d
  19. +0 −28 runtime/internal/invariant.d
  20. +0 −261 runtime/internal/ldc.mak
  21. +0 −81 runtime/internal/ldc/bitmanip.d
  22. +0 −43 runtime/internal/ldc/vararg.d
  23. +0 −1,083 runtime/internal/lifetime.d
  24. +0 −105 runtime/internal/mars.h
  25. +0 −635 runtime/internal/memory.d
  26. +0 −212 runtime/internal/monitor.c
  27. +0 −64 runtime/internal/qsort2.d
  28. +0 −425 runtime/internal/switch.d
  29. +0 −95 runtime/internal/typeinfo/ti_AC.d
  30. +0 −106 runtime/internal/typeinfo/ti_Acdouble.d
  31. +0 −104 runtime/internal/typeinfo/ti_Acfloat.d
  32. +0 −107 runtime/internal/typeinfo/ti_Acreal.d
  33. +0 −116 runtime/internal/typeinfo/ti_Adouble.d
  34. +0 −115 runtime/internal/typeinfo/ti_Afloat.d
  35. +0 −206 runtime/internal/typeinfo/ti_Ag.d
  36. +0 −119 runtime/internal/typeinfo/ti_Aint.d
  37. +0 −109 runtime/internal/typeinfo/ti_Along.d
  38. +0 −117 runtime/internal/typeinfo/ti_Areal.d
  39. +0 −132 runtime/internal/typeinfo/ti_Ashort.d
  40. +0 −74 runtime/internal/typeinfo/ti_C.d
  41. +0 −39 runtime/internal/typeinfo/ti_byte.d
  42. +0 −66 runtime/internal/typeinfo/ti_cdouble.d
  43. +0 −65 runtime/internal/typeinfo/ti_cfloat.d
  44. +0 −42 runtime/internal/typeinfo/ti_char.d
  45. +0 −67 runtime/internal/typeinfo/ti_creal.d
  46. +0 −44 runtime/internal/typeinfo/ti_dchar.d
  47. +0 −39 runtime/internal/typeinfo/ti_delegate.d
  48. +0 −65 runtime/internal/typeinfo/ti_double.d
  49. +0 −64 runtime/internal/typeinfo/ti_float.d
  50. +0 −12 runtime/internal/typeinfo/ti_idouble.d
  51. +0 −12 runtime/internal/typeinfo/ti_ifloat.d
  52. +0 −43 runtime/internal/typeinfo/ti_int.d
  53. +0 −12 runtime/internal/typeinfo/ti_ireal.d
  54. +0 −43 runtime/internal/typeinfo/ti_long.d
  55. +0 −46 runtime/internal/typeinfo/ti_ptr.d
  56. +0 −64 runtime/internal/typeinfo/ti_real.d
  57. +0 −39 runtime/internal/typeinfo/ti_short.d
  58. +0 −43 runtime/internal/typeinfo/ti_ubyte.d
  59. +0 −43 runtime/internal/typeinfo/ti_uint.d
  60. +0 −43 runtime/internal/typeinfo/ti_ulong.d
  61. +0 −39 runtime/internal/typeinfo/ti_ushort.d
  62. +0 −43 runtime/internal/typeinfo/ti_void.d
  63. +0 −43 runtime/internal/typeinfo/ti_wchar.d
  64. +0 −86 runtime/internal/util/console.d
  65. +0 −106 runtime/internal/util/ctype.d
  66. +0 −50 runtime/internal/util/string.d
  67. +0 −851 runtime/internal/util/utf.d
  68. +0 −178 runtime/lib/common/tango/ldc.mak
  69. +0 −127 runtime/lib/gc/basic/ldc.mak
  70. +0 −96 runtime/lib/gc/stub/ldc.mak
  71. +0 −88 runtime/lib/ldc-posix.mak
View
@@ -267,4 +267,6 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
install(DIRECTORY bash_completion.d DESTINATION ${CONF_INST_DIR})
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
-add_subdirectory(runtime)
+if(D_VERSION EQUAL 2)
+ add_subdirectory(runtime)
+endif()
View
@@ -6,6 +6,10 @@ cmake_minimum_required(VERSION 2.6)
# Main configuration.
#
+if(D_VERSION EQUAL 1)
+ message(FATAL_ERROR "Please use bob to build Tango for D1.")
+endif()
+
include(CheckTypeSize)
check_type_size(void* ptr_size)
@@ -29,146 +33,97 @@ else(BUILD_SHARED_LIBS)
set(CXX_COMPILE_FLAGS " ")
endif(BUILD_SHARED_LIBS)
-# build tango for D1, druntime for D2
-if(D_VERSION EQUAL 1)
- set(RUNTIME tango)
-elseif(D_VERSION EQUAL 2)
- set(RUNTIME druntime)
-else(D_VERSION EQUAL 1)
- message(FATAL_ERROR "The runtime must be built as part of the main CMake project.")
-endif(D_VERSION EQUAL 1)
get_directory_property(PROJECT_PARENT_DIR DIRECTORY ${PROJECT_SOURCE_DIR} PARENT_DIRECTORY)
-set(RUNTIME_DIR ${PROJECT_PARENT_DIR}/${RUNTIME} CACHE PATH "runtime source dir")
+set(RUNTIME_DIR ${PROJECT_PARENT_DIR}/druntime CACHE PATH "runtime source dir")
#
# Gather source files.
#
-if(D_VERSION EQUAL 1)
- # copy imports to runtime dir
- set(LDC_IMPORTS)
- macro(imports_file SRCARG)
- get_filename_component(DEST ${SRCARG} NAME)
- set(SRC ${PROJECT_PARENT_DIR}/${SRCARG})
- set(DEST ${RUNTIME_DIR}/ldc/${DEST})
-
- list(APPEND LDC_IMPORTS ${DEST})
- add_custom_command(
- OUTPUT ${DEST}
- DEPENDS ${SRC}
- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${SRC} ${DEST}
- )
- endmacro(imports_file)
- imports_file(import/ldc/cstdarg.di)
- imports_file(import/ldc/intrinsics.di)
- imports_file(import/ldc/llvmasm.di)
- imports_file(internal/ldc/bitmanip.d)
- imports_file(internal/ldc/vararg.d)
- # library names
- set(RUNTIME_CC tango-cc-tango)
- set(RUNTIME_GC tango-gc-basic)
- set(RUNTIME_DC ldc-runtime)
- set(RUNTIME_AIO tango)
- # set paths to source files, or fill lists directly
- set(RUNTIME_DC_DIR ${RUNTIME_DIR}/internal)
- set(RUNTIME_GC_DIR ${RUNTIME_DIR}/lib/gc/basic)
- set(RUNTIME_INCLUDE ${RUNTIME_DC_DIR})
- file(GLOB CORE_D ${RUNTIME_DIR}/lib/common/tango/core/*.d)
- file(GLOB CORE_C ${RUNTIME_DIR}/lib/common/tango/stdc/*.c)
- file(GLOB_RECURSE GC_D ${RUNTIME_GC_DIR}/*.d)
- file(GLOB_RECURSE DCRT_D ${RUNTIME_DC_DIR}/*.d)
- file(GLOB DCRT_C ${RUNTIME_DC_DIR}/*.c)
- set(CONFIG_NAME ${LDC_EXE})
-elseif(D_VERSION EQUAL 2)
- set(PHOBOS2_DIR ${PROJECT_PARENT_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_DC_DIR ${RUNTIME_DIR}/src/rt)
- set(RUNTIME_GC_DIR ${RUNTIME_DIR}/src/gc)
- set(RUNTIME_INCLUDE ${RUNTIME_DIR}/src)
- file(GLOB CORE_D ${RUNTIME_DIR}/src/core/*.d )
- file(GLOB CORE_D_SYNC ${RUNTIME_DIR}/src/core/sync/*.d )
- file(GLOB CORE_D_STDC ${RUNTIME_DIR}/src/core/stdc/*.d )
- file(GLOB_RECURSE GC_D ${RUNTIME_GC_DIR}/*.d)
- file(GLOB_RECURSE DCRT_D ${RUNTIME_DC_DIR}/*.d)
- file(GLOB_RECURSE LDC_D ${RUNTIME_DIR}/src/ldc/*.d)
- list(REMOVE_ITEM DCRT_D
- ${RUNTIME_DC_DIR}/alloca.d
- ${RUNTIME_DC_DIR}/arraybyte.d
- ${RUNTIME_DC_DIR}/arraycast.d
- ${RUNTIME_DC_DIR}/arraycat.d
- ${RUNTIME_DC_DIR}/arraydouble.d
- ${RUNTIME_DC_DIR}/arrayfloat.d
- ${RUNTIME_DC_DIR}/arrayreal.d
- ${RUNTIME_DC_DIR}/arrayshort.d
- ${RUNTIME_DC_DIR}/critical_.d
- ${RUNTIME_DC_DIR}/deh.d
- ${RUNTIME_DC_DIR}/deh2.d
- ${RUNTIME_DC_DIR}/llmath.d
- ${RUNTIME_DC_DIR}/qsort2.d
- ${RUNTIME_DC_DIR}/trace.d
- )
- file(GLOB DCRT_C ${RUNTIME_DC_DIR}/*.c)
- list(REMOVE_ITEM DCRT_C ${RUNTIME_DC_DIR}/deh.c ${RUNTIME_DC_DIR}/memory_osx.c ${RUNTIME_DC_DIR}/dylib_fixes.c)
+set(PHOBOS2_DIR ${PROJECT_PARENT_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_DC_DIR ${RUNTIME_DIR}/src/rt)
+set(RUNTIME_GC_DIR ${RUNTIME_DIR}/src/gc)
+set(RUNTIME_INCLUDE ${RUNTIME_DIR}/src)
+file(GLOB CORE_D ${RUNTIME_DIR}/src/core/*.d )
+file(GLOB CORE_D_SYNC ${RUNTIME_DIR}/src/core/sync/*.d )
+file(GLOB CORE_D_STDC ${RUNTIME_DIR}/src/core/stdc/*.d )
+file(GLOB_RECURSE GC_D ${RUNTIME_GC_DIR}/*.d)
+file(GLOB_RECURSE DCRT_D ${RUNTIME_DC_DIR}/*.d)
+file(GLOB_RECURSE LDC_D ${RUNTIME_DIR}/src/ldc/*.d)
+list(REMOVE_ITEM DCRT_D
+ ${RUNTIME_DC_DIR}/alloca.d
+ ${RUNTIME_DC_DIR}/arraybyte.d
+ ${RUNTIME_DC_DIR}/arraycast.d
+ ${RUNTIME_DC_DIR}/arraycat.d
+ ${RUNTIME_DC_DIR}/arraydouble.d
+ ${RUNTIME_DC_DIR}/arrayfloat.d
+ ${RUNTIME_DC_DIR}/arrayreal.d
+ ${RUNTIME_DC_DIR}/arrayshort.d
+ ${RUNTIME_DC_DIR}/critical_.d
+ ${RUNTIME_DC_DIR}/deh.d
+ ${RUNTIME_DC_DIR}/deh2.d
+ ${RUNTIME_DC_DIR}/llmath.d
+ ${RUNTIME_DC_DIR}/qsort2.d
+ ${RUNTIME_DC_DIR}/trace.d
+)
+file(GLOB DCRT_C ${RUNTIME_DC_DIR}/*.c)
+list(REMOVE_ITEM DCRT_C ${RUNTIME_DC_DIR}/deh.c ${RUNTIME_DC_DIR}/memory_osx.c ${RUNTIME_DC_DIR}/dylib_fixes.c)
+if(UNIX)
+ file(GLOB_RECURSE CORE_D_SYS ${RUNTIME_DIR}/src/core/sys/posix/*.d)
+elseif(WIN32)
+ file(GLOB_RECURSE CORE_D_SYS ${RUNTIME_DIR}/src/core/sys/windows/*.d)
+elseif(APPLE)
+ file(GLOB_RECURSE CORE_D_SYS ${RUNTIME_DIR}/src/core/sys/osx/*.d)
+endif(UNIX)
+list(APPEND CORE_D ${CORE_D_SYNC} ${CORE_D_SYS} ${CORE_D_STDC} )
+list(APPEND GENERATE_DI ${CORE_D})
+list(APPEND CORE_D ${LDC_D} ${RUNTIME_DIR}/src/object_.d)
+file(GLOB CORE_C ${RUNTIME_DIR}/src/core/stdc/*.c)
+
+if(PHOBOS2_DIR)
+ file(GLOB PHOBOS2_D ${PHOBOS2_DIR}/std/*.d)
+ file(GLOB_RECURSE PHOBOS2_D_INTERNAL ${PHOBOS2_DIR}/std/internal/*.d)
+ file(GLOB PHOBOS2_D_C ${PHOBOS2_DIR}/std/c/*.d)
if(UNIX)
- file(GLOB_RECURSE CORE_D_SYS ${RUNTIME_DIR}/src/core/sys/posix/*.d)
+ file(GLOB PHOBOS2_D_C_SYS ${PHOBOS2_DIR}/std/c/linux/*.d)
elseif(WIN32)
- file(GLOB_RECURSE CORE_D_SYS ${RUNTIME_DIR}/src/core/sys/windows/*.d)
+ file(GLOB PHOBOS2_D_C_SYS ${PHOBOS2_DIR}/std/c/windows/*.d)
elseif(APPLE)
- file(GLOB_RECURSE CORE_D_SYS ${RUNTIME_DIR}/src/core/sys/osx/*.d)
+ file(GLOB PHOBOS2_D_C_SYS ${PHOBOS2_DIR}/std/c/osx/*.d)
endif(UNIX)
- list(APPEND CORE_D ${CORE_D_SYNC} ${CORE_D_SYS} ${CORE_D_STDC} )
- list(APPEND GENERATE_DI ${CORE_D})
- list(APPEND CORE_D ${LDC_D} ${RUNTIME_DIR}/src/object_.d)
- file(GLOB CORE_C ${RUNTIME_DIR}/src/core/stdc/*.c)
-
- if(PHOBOS2_DIR)
- file(GLOB PHOBOS2_D ${PHOBOS2_DIR}/std/*.d)
- file(GLOB_RECURSE PHOBOS2_D_INTERNAL ${PHOBOS2_DIR}/std/internal/*.d)
- file(GLOB PHOBOS2_D_C ${PHOBOS2_DIR}/std/c/*.d)
- if(UNIX)
- file(GLOB PHOBOS2_D_C_SYS ${PHOBOS2_DIR}/std/c/linux/*.d)
- elseif(WIN32)
- file(GLOB PHOBOS2_D_C_SYS ${PHOBOS2_DIR}/std/c/windows/*.d)
- elseif(APPLE)
- file(GLOB PHOBOS2_D_C_SYS ${PHOBOS2_DIR}/std/c/osx/*.d)
- endif(UNIX)
- file(GLOB ZLIB_C ${PHOBOS2_DIR}/etc/c/zlib/*.c)
- list(REMOVE_ITEM ZLIB_C
- ${PHOBOS2_DIR}/etc/c/zlib/minigzip.c
- ${PHOBOS2_DIR}/etc/c/zlib/example.c
- ${PHOBOS2_DIR}/etc/c/zlib/gzio.c
- )
- if(WIN32)
- file(GLOB PHOBOS2_D_WIN ${PHOBOS2_DIR}/std/windows/*.d)
- endif(WIN32)
- list(APPEND PHOBOS2_D
- ${PHOBOS2_D_INTERNAL}
- ${PHOBOS2_D_WIN}
- ${PHOBOS2_D_C}
- ${PHOBOS2_D_C_SYS}
- ${PHOBOS2_DIR}/etc/c/zlib.d
- ${PHOBOS2_DIR}/crc32.d
- )
- list(REMOVE_ITEM PHOBOS2_D
- ${PHOBOS2_DIR}/std/intrinsic.d
- )
- set(CONFIG_NAME ${LDC_EXE}_phobos)
- else(PHOBOS2_DIR)
- set(CONFIG_NAME ${LDC_EXE})
- endif(PHOBOS2_DIR)
-endif(D_VERSION EQUAL 1)
+ file(GLOB ZLIB_C ${PHOBOS2_DIR}/etc/c/zlib/*.c)
+ list(REMOVE_ITEM ZLIB_C
+ ${PHOBOS2_DIR}/etc/c/zlib/minigzip.c
+ ${PHOBOS2_DIR}/etc/c/zlib/example.c
+ ${PHOBOS2_DIR}/etc/c/zlib/gzio.c
+ )
+ if(WIN32)
+ file(GLOB PHOBOS2_D_WIN ${PHOBOS2_DIR}/std/windows/*.d)
+ endif(WIN32)
+ list(APPEND PHOBOS2_D
+ ${PHOBOS2_D_INTERNAL}
+ ${PHOBOS2_D_WIN}
+ ${PHOBOS2_D_C}
+ ${PHOBOS2_D_C_SYS}
+ ${PHOBOS2_DIR}/etc/c/zlib.d
+ ${PHOBOS2_DIR}/crc32.d
+ )
+ list(REMOVE_ITEM PHOBOS2_D
+ ${PHOBOS2_DIR}/std/intrinsic.d
+ )
+ set(CONFIG_NAME ${LDC_EXE}_phobos)
+else(PHOBOS2_DIR)
+ set(CONFIG_NAME ${LDC_EXE})
+endif(PHOBOS2_DIR)
# should only be necessary if run independently from ldc cmake project
if(NOT LDC_LOC)
if(NOT LDC_EXE)
- if(D_VERSION EQUAL 1)
- set(LDC_EXE ldc)
- elseif(D_VERSION EQUAL 2)
- set(LDC_EXE ldc2)
- endif(D_VERSION EQUAL 1)
+ set(LDC_EXE ldc2)
endif(NOT LDC_EXE)
find_program(LDC_LOC ${LDC_EXE} ${PROJECT_BINARY_DIR}/../bin DOC "path to ldc binary")
@@ -264,14 +219,10 @@ macro(build_runtime d_flags c_flags ld_flags lib_suffix path_suffix)
set(DCRT_O "")
set(DCRT_BC "")
foreach(f ${DCRT_D})
- if(D_VERSION EQUAL 1)
- dc(${f} DCRT_O DCRT_BC "${d_flags}" ${RUNTIME_DC_DIR} "${target_suffix}")
- else(D_VERSION EQUAL 1)
- dc(${f} DCRT_O DCRT_BC "${d_flags}" "" "${target_suffix}")
- endif(D_VERSION EQUAL 1)
+ dc(${f} DCRT_O DCRT_BC "${d_flags}" "" "${target_suffix}")
endforeach(f)
- if(EXISTS ${PROJECT_PARENT_DIR}/${RUNTIME})
+ if(EXISTS ${RUNTIME_DIR})
if(BUILD_SINGLE_LIB)
add_library(${RUNTIME_AIO}${target_suffix}
${D_LIBRARY_TYPE}
@@ -296,7 +247,7 @@ macro(build_runtime d_flags c_flags ld_flags lib_suffix path_suffix)
${RUNTIME_DC}${lib_suffix}
)
endif(BUILD_SINGLE_LIB)
- endif(EXISTS ${PROJECT_PARENT_DIR}/${RUNTIME})
+ endif()
if(BUILD_BC_LIBS)
find_program(LLVM_AR_EXE llvm-ar ${LLVM_INSTDIR}/bin DOC "path to llvm-ar tool")
@@ -389,17 +340,12 @@ endif(MULTILIB)
# Install target.
#
-if(D_VERSION EQUAL 2)
- install(DIRECTORY ${CMAKE_BINARY_DIR}/import/core DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.di")
- if(PHOBOS2_DIR)
- install(DIRECTORY ${PHOBOS2_DIR}/std DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.d")
- install(DIRECTORY ${PHOBOS2_DIR}/etc DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.d")
- install(FILES ${PHOBOS2_DIR}/crc32.d DESTINATION ${INCLUDE_INSTALL_DIR})
- endif(PHOBOS2_DIR)
- install(FILES ${RUNTIME_DIR}/import/object.di DESTINATION ${INCLUDE_INSTALL_DIR}/ldc)
- install(FILES ${RUNTIME_DIR}/src/ldc/bitop.d DESTINATION ${INCLUDE_INSTALL_DIR}/core)
- install(DIRECTORY ${RUNTIME_DIR}/import/ldc DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.di")
-else(D_VERSION EQUAL 2)
- install(DIRECTORY ${PROJECT_SOURCE_DIR}/${RUNTIME}/internal/ldc/ DESTINATION ${INCLUDE_INSTALL_DIR}/ldc)
- install(DIRECTORY ${PROJECT_SOURCE_DIR}/runtime/import/ldc DESTINATION ${INCLUDE_INSTALL_DIR})
-endif(D_VERSION EQUAL 2)
+install(DIRECTORY ${CMAKE_BINARY_DIR}/import/core DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.di")
+if(PHOBOS2_DIR)
+ install(DIRECTORY ${PHOBOS2_DIR}/std DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.d")
+ install(DIRECTORY ${PHOBOS2_DIR}/etc DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.d")
+ install(FILES ${PHOBOS2_DIR}/crc32.d DESTINATION ${INCLUDE_INSTALL_DIR})
+endif(PHOBOS2_DIR)
+install(FILES ${RUNTIME_DIR}/import/object.di DESTINATION ${INCLUDE_INSTALL_DIR}/ldc)
+install(FILES ${RUNTIME_DIR}/src/ldc/bitop.d DESTINATION ${INCLUDE_INSTALL_DIR}/core)
+install(DIRECTORY ${RUNTIME_DIR}/import/ldc DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.di")
View
@@ -1,30 +1,24 @@
-This should help get the runtime built.
-FOR D1:
-=======
-1) Do a checkout of tango trunk into the ldc root dir (along dmd, gen, runtime etc).
+Building druntime/Phobos for D2
+---
- * $ ls
- * dmd dmd2 gen ir ...
- * $ svn co http://svn.dsource.org/projects/tango/trunk tango
+LDC currently needs custom forks of druntime and Phobos. They are integrated
+with the main repository using Git submodules. To build them, make sure you
+have up-to-date copies of the submodules in your local repository:
-2) Compile the runtime
+$ git submodule update -i
- * sh build.sh
+The libraries should then be built and installed automatically along with the
+compiler itself. If, for some reason, you want to build them separately, the
+targets are:
-FOR D2:
-=======
-1) Check http://bitbucket.org/prokhin_alexy/ldc2/wiki/Home for up to date instructions
+$ make runtime
+$ make phobos2
-2) At the time of writing, this works:
- * $ git clone https://github.com/AlexeyProkhin/druntime
- * $ git clone https://github.com/AlexeyProkhin/phobos
+Building Tango for D1
+---
-3) Using cmake, set the D version to 2, then set the correct paths for druntime and phobos
-
-4) Compile ldc2, druntime, and phobos
-
- * $ make phobos2
-
-=======
-Enjoy!
+This directory used to contain scripts for building Tango for LDC/D1, which
+became obsolete after LDC support was added to its build system, and were
+consequently removed. Please use the official Tango build system (bob) from
+now on.
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-# I'm no good bash scripter ...
-
-# copy imports
-mkdir -p ../tango/ldc
-cp internal/ldc/bitmanip.d ../tango/ldc/bitmanip.di
-cp internal/ldc/vararg.d ../tango/ldc/vararg.di
-cp import/ldc/* ../tango/ldc
-
-# make the runtime
-cp -R lib ../tango
-cd ../tango/lib
-make -f ldc-posix.mak clean
-make -f ldc-posix.mak sharedlib
-cd ../..
-
-# install the runtime
-rm -f lib/libldc-runtime-shared.so
-cp runtime/internal/libldc-runtime-shared.so lib
-rm -f lib/libtango-gc-basic-shared.so
-cp tango/lib/gc/basic/libtango-gc-basic-shared.so lib
-rm -f lib/libtango-cc-tango-shared.so
-cp tango/lib/common/tango/libtango-cc-tango-shared.so lib
View
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-# I'm no good bash scripter ...
-
-# copy imports
-mkdir -p ../tango/ldc
-cp internal/ldc/bitmanip.d ../tango/ldc/bitmanip.di
-cp internal/ldc/vararg.d ../tango/ldc/vararg.di
-cp import/ldc/* ../tango/ldc
-
-# make the runtime
-cp -R lib ../tango
-cd ../tango/lib
-make -f ldc-posix.mak clean
-make -f ldc-posix.mak lib
-cd ../..
-
-# install the runtime
-rm -f lib/libldc-runtime*.a
-cp runtime/internal/libldc-runtime*.a lib
-rm -f lib/libtango-gc-basic*.a
-cp tango/lib/gc/basic/libtango-gc-basic*.a lib
-rm -f lib/libtango-cc-tango*.a
-cp tango/lib/common/tango/libtango-cc-tango*.a lib
Oops, something went wrong.

0 comments on commit 38d1bf4

Please sign in to comment.