@@ -142,7 +142,8 @@ def copy_embedded_compiler_rt_builtins_from_darwin_host_toolchain(
142
142
if not os .path .isfile (dest_lib_path ):
143
143
if os .path .isfile (host_lib_path ):
144
144
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 ))
146
147
self .copy_lib_stripping_architecture (host_lib_path ,
147
148
dest_lib_path ,
148
149
'i386' )
@@ -163,11 +164,13 @@ def copy_embedded_compiler_rt_builtins_from_darwin_host_toolchain(
163
164
if _os == 'tvos' :
164
165
# This is to avoid strip failures when generating
165
166
# 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 ))
167
169
self .copy_lib_stripping_architecture (
168
170
host_sim_lib_path , dest_sim_lib_path , 'i386' )
169
171
else :
170
- print ('{} -> {}' .format (host_sim_lib_path , dest_sim_lib_path ))
172
+ print ('{} -> {}' .format (
173
+ host_sim_lib_path , dest_sim_lib_path ))
171
174
shutil .copy (host_sim_lib_path , dest_sim_lib_path )
172
175
173
176
elif os .path .isfile (host_lib_path ):
@@ -185,7 +188,8 @@ def copy_embedded_compiler_rt_builtins_from_darwin_host_toolchain(
185
188
shell .call (['lipo' , '-remove' , 'i386' , host_lib_path ,
186
189
'-output' , dest_sim_lib_path ])
187
190
else :
188
- print ('{} -> {}' .format (host_lib_path , dest_sim_lib_path ))
191
+ print ('{} -> {}' .format (host_lib_path ,
192
+ dest_sim_lib_path ))
189
193
shutil .copy (host_lib_path , dest_sim_lib_path )
190
194
elif self .args .verbose_build :
191
195
print ('no file exists at {}' , host_sim_lib_path )
@@ -294,8 +298,9 @@ def build(self, host_target):
294
298
295
299
if system () == 'Darwin' :
296
300
# 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' )
299
304
300
305
llvm_enable_projects = ['clang' ]
301
306
0 commit comments