@@ -130,7 +130,6 @@ endif()
130
130
get_directory_property (PROJECT_PARENT_DIR DIRECTORY ${PROJECT_SOURCE_DIR} PARENT_DIRECTORY )
131
131
set (RUNTIME_DIR ${PROJECT_SOURCE_DIR} /druntime CACHE PATH "druntime root directory" )
132
132
set (PHOBOS2_DIR ${PROJECT_SOURCE_DIR} /phobos CACHE PATH "Phobos root directory" )
133
- set (PROFILERT_DIR ${PROJECT_SOURCE_DIR} /profile-rt CACHE PATH "profile-rt root directory" )
134
133
set (JITRT_DIR ${PROJECT_SOURCE_DIR} /jit-rt CACHE PATH "jit runtime root directory" )
135
134
136
135
#
@@ -625,20 +624,6 @@ macro(build_runtime_variants d_flags c_flags ld_flags path_suffix outlist_target
625
624
)
626
625
endmacro ()
627
626
628
- # Builds static and/or shared debug+release druntime/Phobos + static profile-rt.
629
- macro (build_all_runtime_variants d_flags c_flags ld_flags path_suffix outlist_targets)
630
- build_runtime_variants("${d_flags} " "${c_flags} " "${ld_flags} " "${path_suffix} " ${outlist_targets} )
631
-
632
- # static profile-rt (currently only needed on Windows)
633
- if ("${TARGET_SYSTEM} " MATCHES "Windows" )
634
- build_profile_runtime("${c_flags} " "${ld_flags} " "" "${path_suffix} " ${outlist_targets} )
635
- endif ()
636
- endmacro ()
637
-
638
-
639
- # Setup the build of profile-rt
640
- include (profile-rt/DefineBuildProfileRT.cmake)
641
-
642
627
# Setup the build of jit runtime
643
628
include (jit-rt/DefineBuildJitRT.cmake)
644
629
@@ -654,8 +639,8 @@ if(MULTILIB AND "${TARGET_SYSTEM}" MATCHES "APPLE")
654
639
set (hostsuffix "${LIB_SUFFIX}${HOST_BITNESS} " )
655
640
656
641
set (libtargets)
657
- build_all_runtime_variants ("" "${RT_CFLAGS} " "${LD_FLAGS} " "${hostsuffix} " libtargets)
658
- build_all_runtime_variants ("-m${MULTILIB_SUFFIX} " "-m${MULTILIB_SUFFIX} ${RT_CFLAGS} " "-m${MULTILIB_SUFFIX} ${LD_FLAGS} " "${MULTILIB_SUFFIX} " libtargets)
642
+ build_runtime_variants ("" "${RT_CFLAGS} " "${LD_FLAGS} " "${hostsuffix} " libtargets)
643
+ build_runtime_variants ("-m${MULTILIB_SUFFIX} " "-m${MULTILIB_SUFFIX} ${RT_CFLAGS} " "-m${MULTILIB_SUFFIX} ${LD_FLAGS} " "${MULTILIB_SUFFIX} " libtargets)
659
644
660
645
# Only build the host version of the jit runtime due to LLVM dependency.
661
646
set (libtargets_jit)
@@ -702,7 +687,7 @@ if(MULTILIB AND "${TARGET_SYSTEM}" MATCHES "APPLE")
702
687
endforeach ()
703
688
else ()
704
689
set (libs_to_install)
705
- build_all_runtime_variants ("" "${RT_CFLAGS} " "${LD_FLAGS} " "${LIB_SUFFIX} " libs_to_install)
690
+ build_runtime_variants ("" "${RT_CFLAGS} " "${LD_FLAGS} " "${LIB_SUFFIX} " libs_to_install)
706
691
707
692
# Only build the host version of the jit runtime due to LLVM dependency.
708
693
set (libtargets_jit)
@@ -712,7 +697,7 @@ else()
712
697
713
698
# don't add multilib targets to libs_to_install
714
699
if (MULTILIB)
715
- build_all_runtime_variants ("-m${MULTILIB_SUFFIX} " "-m${MULTILIB_SUFFIX} ${RT_CFLAGS} " "-m${MULTILIB_SUFFIX} ${LD_FLAGS} " "${MULTILIB_SUFFIX} " dummy)
700
+ build_runtime_variants ("-m${MULTILIB_SUFFIX} " "-m${MULTILIB_SUFFIX} ${RT_CFLAGS} " "-m${MULTILIB_SUFFIX} ${LD_FLAGS} " "${MULTILIB_SUFFIX} " dummy)
716
701
endif ()
717
702
718
703
foreach (libname ${libs_to_install} )
0 commit comments