@@ -437,7 +437,7 @@ function(_add_host_variant_link_flags target)
437
437
endif ()
438
438
endfunction ()
439
439
440
- function (_add_swift_runtime_link_flags target relpath_to_lib_dir bootstrapping required_for_minimal_compiler )
440
+ function (_add_swift_runtime_link_flags target relpath_to_lib_dir bootstrapping)
441
441
if (NOT BOOTSTRAPPING_MODE)
442
442
if (SWIFT_SWIFT_PARSER)
443
443
set (ASRLF_BOOTSTRAPPING_MODE "HOSTTOOLS" )
@@ -547,14 +547,10 @@ function(_add_swift_runtime_link_flags target relpath_to_lib_dir bootstrapping r
547
547
target_link_directories (${target} PRIVATE ${host_lib_dir} )
548
548
549
549
# At runtime, use swiftCore in the current toolchain.
550
+ # For building stdlib, LD_LIBRARY_PATH will be set to builder's stdlib
550
551
# FIXME: This assumes the ABI hasn't changed since the builder.
551
552
set (swift_runtime_rpath "$ORIGIN/${relpath_to_lib_dir} /swift/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK} _LIB_SUBDIR}" )
552
553
553
- if (ASRLF_BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS" AND required_for_minimal_compiler)
554
- # But before building the stdlib with the tool, use the builder libs. This should be removed in install time.
555
- list (APPEND swift_runtime_rpath "${host_lib_dir} " )
556
- endif ()
557
-
558
554
elseif (ASRLF_BOOTSTRAPPING_MODE STREQUAL "BOOTSTRAPPING" )
559
555
# At build time link against the built swift libraries from the
560
556
# previous bootstrapping stage.
@@ -742,7 +738,7 @@ function(add_swift_host_library name)
742
738
_set_target_prefix_and_suffix(${name} "${libkind} " "${SWIFT_HOST_VARIANT_SDK} " )
743
739
744
740
if (ASHL_SHARED AND ASHL_HAS_SWIFT_MODULES)
745
- _add_swift_runtime_link_flags(${name} "." "" FALSE )
741
+ _add_swift_runtime_link_flags(${name} "." "" )
746
742
endif ()
747
743
748
744
# Set compilation and link flags.
@@ -836,7 +832,6 @@ endmacro()
836
832
# add_swift_host_tool(name
837
833
# [HAS_SWIFT_MODULES]
838
834
# [THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY]
839
- # [REQUIRED_FOR_MINIMAL_COMPILER]
840
835
#
841
836
# [BOOTSTRAPPING 0|1]
842
837
# [SWIFT_COMPONENT component]
@@ -852,9 +847,6 @@ endmacro()
852
847
# THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY
853
848
# Opt-out of LLVM IR optimizations when linking ThinLTO with ld64
854
849
#
855
- # REQUIRED_FOR_MINIMAL_COMPILER
856
- # Required for building standard libraries.
857
- #
858
850
# BOOTSTRAPPING
859
851
# Bootstrapping stage.
860
852
#
@@ -867,7 +859,7 @@ endmacro()
867
859
# source1 ...
868
860
# Sources to add into this executable.
869
861
function (add_swift_host_tool executable)
870
- set (options HAS_SWIFT_MODULES THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY REQUIRED_FOR_MINIMAL_COMPILER )
862
+ set (options HAS_SWIFT_MODULES THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY)
871
863
set (single_parameter_options SWIFT_COMPONENT BOOTSTRAPPING)
872
864
set (multiple_parameter_options LLVM_LINK_COMPONENTS)
873
865
@@ -928,7 +920,7 @@ function(add_swift_host_tool executable)
928
920
endif ()
929
921
930
922
if (ASHT_HAS_SWIFT_MODULES)
931
- _add_swift_runtime_link_flags(${executable} "../lib" "${ASHT_BOOTSTRAPPING} " " ${ASHT_REQUIRED_FOR_MINIMAL_COMPILER} " )
923
+ _add_swift_runtime_link_flags(${executable} "../lib" "${ASHT_BOOTSTRAPPING} " )
932
924
endif ()
933
925
934
926
llvm_update_compile_flags(${executable} )
@@ -1004,14 +996,6 @@ function(add_swift_host_tool executable)
1004
996
COMPONENT ${ASHT_SWIFT_COMPONENT}
1005
997
)
1006
998
1007
- if (ASHT_REQUIRED_FOR_MINIMAL_COMPILER)
1008
- swift_install_strip_builder_rpath(
1009
- TARGETS ${executable}
1010
- DESTINATION bin
1011
- COMPONENT ${ASHT_SWIFT_COMPONENT}
1012
- )
1013
- endif ()
1014
-
1015
999
swift_is_installing_component(${ASHT_SWIFT_COMPONENT} is_installing)
1016
1000
endif ()
1017
1001
0 commit comments