@@ -24,7 +24,6 @@ endif()
24
24
25
25
set (MULTILIB OFF CACHE BOOL "Build both 32/64 bit runtime libraries" )
26
26
set (BUILD_LTO_LIBS OFF CACHE BOOL "Also build the runtime as LLVM bitcode libraries for LTO" )
27
- set (INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX} /include /d CACHE PATH "Path to install D modules to" )
28
27
set (BUILD_SHARED_LIBS AUTO CACHE STRING "Whether to build the runtime as a shared library (ON|OFF|BOTH)" )
29
28
set (D_FLAGS -w;-de;-preview=dip1000;-preview=dtorfields;-preview=fieldwise CACHE STRING "Runtime D compiler flags, separated by ';'" )
30
29
set (D_EXTRA_FLAGS "" CACHE STRING "Runtime extra D compiler flags, separated by ';'" )
@@ -373,36 +372,6 @@ endif()
373
372
# druntime/Phobos compilation helpers.
374
373
#
375
374
376
- set (GCCBUILTINS "" )
377
- if (TARGET gen_gccbuiltins)
378
- file (MAKE_DIRECTORY "${LDC_BUILD_IMPORT_DIR} /ldc" )
379
-
380
- function (gen_gccbuiltins name )
381
- set (module "${LDC_BUILD_IMPORT_DIR} /ldc/gccbuiltins_${name} .di" )
382
- if (GCCBUILTINS STREQUAL "" )
383
- set (GCCBUILTINS "${module} " PARENT_SCOPE)
384
- else ()
385
- set (GCCBUILTINS "${GCCBUILTINS} ;${module} " PARENT_SCOPE)
386
- endif ()
387
- add_custom_command (
388
- OUTPUT ${module}
389
- COMMAND gen_gccbuiltins ${module} "${name} "
390
- DEPENDS gen_gccbuiltins
391
- )
392
- endfunction ()
393
-
394
- set (target_arch "AArch64;AMDGPU;ARM;Mips;RISCV;NVPTX;PowerPC;SystemZ;X86" )
395
- set (target_name "aarch64;amdgcn;arm;mips;riscv;nvvm;ppc;s390;x86" )
396
-
397
- foreach (target ${LLVM_TARGETS_TO_BUILD} )
398
- list (FIND target_arch ${target} idx)
399
- if (idx GREATER -1)
400
- list (GET target_name ${idx} name )
401
- gen_gccbuiltins(${name} )
402
- endif ()
403
- endforeach ()
404
- endif ()
405
-
406
375
# Always build zlib and other C parts of the runtime in release mode, regardless
407
376
# of what the user chose for LDC itself. Also add other C_FLAGS here.
408
377
# 1) Set up CMAKE_C_FLAGS_RELEASE
@@ -453,7 +422,7 @@ macro(dc src_files src_basedir d_flags output_basedir emit_bc all_at_once single
453
422
454
423
# dc_deps can only contain paths, otherwise cmake will ignore the dependency.
455
424
# See: https://github.com/ldc-developers/ldc/pull/4743#issuecomment-2323156173
456
- set (dc_deps ${LDC_EXE_FULL} ${GCCBUILTINS} )
425
+ set (dc_deps ${LDC_EXE_FULL} )
457
426
458
427
set (relative_src_files "" )
459
428
set (new_o "" )
@@ -911,7 +880,6 @@ if(PHOBOS2_DIR)
911
880
install (DIRECTORY ${PHOBOS2_DIR} /std DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.d" )
912
881
install (DIRECTORY ${PHOBOS2_DIR} /etc DESTINATION ${INCLUDE_INSTALL_DIR} FILES_MATCHING PATTERN "*.d" )
913
882
endif ()
914
- install (FILES ${GCCBUILTINS} DESTINATION ${INCLUDE_INSTALL_DIR} /ldc)
915
883
916
884
917
885
#
0 commit comments