Skip to content

Commit 9fd1531

Browse files
committed
REMOVE ME: Testing compiler-rt installation
1 parent 02a9c46 commit 9fd1531

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

utils/build_swift/build_swift/driver_arguments.py

-2
Original file line numberDiff line numberDiff line change
@@ -729,12 +729,10 @@ def create_argument_parser():
729729

730730
option('--skip-build-clang-tools-extra',
731731
toggle_false('build_clang_tools_extra'),
732-
default=True,
733732
help='skip building clang-tools-extra as part of llvm')
734733

735734
option('--skip-build-compiler-rt',
736735
toggle_false('build_compiler_rt'),
737-
default=True,
738736
help='skip building compiler-rt as part of llvm')
739737

740738
# -------------------------------------------------------------------------

utils/swift_build_support/swift_build_support/products/llvm.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,10 @@ def copy_embedded_compiler_rt_builtins_from_darwin_host_toolchain(
142142

143143
# [ -d "${HOST_LIB_CLANG_DIR}" -a -d "${DEST_LIB_CLANG_DIR}" ] || return 0
144144

145-
if not os.path.exists(host_lib_clang_dir) or \
146-
not os.path.exists(dest_lib_clang_dir):
145+
if not os.path.exists(host_lib_clang_dir):
146+
return 0
147+
148+
if not os.path.exists(dest_lib_clang_dir):
147149
return 0
148150

149151
# DEST_CXX_BUILTINS_VERSION=$(ls -1 "${DEST_LIB_CLANG_DIR}")
@@ -673,7 +675,6 @@ def install(self, host_target):
673675
self.install_with_cmake(install_targets, host_install_destdir)
674676

675677
if self.args.llvm_install_components and system() == 'Darwin':
676-
clang_dest_dir = '{}{}'.format(host_install_destdir,
677-
targets.install_prefix())
678+
clang_dest_dir = self.install_toolchain_path(host_target)
678679
self.copy_embedded_compiler_rt_builtins_from_darwin_host_toolchain(
679680
clang_dest_dir)

0 commit comments

Comments
 (0)