Skip to content

Commit 4f0d2e9

Browse files
committed
[embedded] Adhere to Python lint rules in llvm.py
1 parent bd0c903 commit 4f0d2e9

File tree

1 file changed

+11
-6
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+11
-6
lines changed

utils/swift_build_support/swift_build_support/products/llvm.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def copy_embedded_compiler_rt_builtins_from_darwin_host_toolchain(
142142
if not os.path.isfile(dest_lib_path):
143143
if os.path.isfile(host_lib_path):
144144
if _os == 'tvos':
145-
print('{} -> {} (stripping i386)'.format(host_lib_path, dest_lib_path))
145+
print('{} -> {} (stripping i386)'.format(
146+
host_lib_path, dest_lib_path))
146147
self.copy_lib_stripping_architecture(host_lib_path,
147148
dest_lib_path,
148149
'i386')
@@ -163,11 +164,13 @@ def copy_embedded_compiler_rt_builtins_from_darwin_host_toolchain(
163164
if _os == 'tvos':
164165
# This is to avoid strip failures when generating
165166
# a toolchain
166-
print('{} -> {} (stripping i386)'.format(host_sim_lib_path, dest_sim_lib_path))
167+
print('{} -> {} (stripping i386)'.format(
168+
host_sim_lib_path, dest_sim_lib_path))
167169
self.copy_lib_stripping_architecture(
168170
host_sim_lib_path, dest_sim_lib_path, 'i386')
169171
else:
170-
print('{} -> {}'.format(host_sim_lib_path, dest_sim_lib_path))
172+
print('{} -> {}'.format(
173+
host_sim_lib_path, dest_sim_lib_path))
171174
shutil.copy(host_sim_lib_path, dest_sim_lib_path)
172175

173176
elif os.path.isfile(host_lib_path):
@@ -185,7 +188,8 @@ def copy_embedded_compiler_rt_builtins_from_darwin_host_toolchain(
185188
shell.call(['lipo', '-remove', 'i386', host_lib_path,
186189
'-output', dest_sim_lib_path])
187190
else:
188-
print('{} -> {}'.format(host_lib_path, dest_sim_lib_path))
191+
print('{} -> {}'.format(host_lib_path,
192+
dest_sim_lib_path))
189193
shutil.copy(host_lib_path, dest_sim_lib_path)
190194
elif self.args.verbose_build:
191195
print('no file exists at {}', host_sim_lib_path)
@@ -294,8 +298,9 @@ def build(self, host_target):
294298

295299
if system() == 'Darwin':
296300
# Ask for Mach-O cross-compilation builtins (for Embedded Swift)
297-
llvm_cmake_options.define('COMPILER_RT_FORCE_BUILD_BAREMETAL_MACHO_BUILTINS_ARCHS:STRING',
298-
'armv6 armv6m armv7 armv7m armv7em')
301+
llvm_cmake_options.define(
302+
'COMPILER_RT_FORCE_BUILD_BAREMETAL_MACHO_BUILTINS_ARCHS:STRING',
303+
'armv6 armv6m armv7 armv7m armv7em')
299304

300305
llvm_enable_projects = ['clang']
301306

0 commit comments

Comments
 (0)