@@ -265,33 +265,32 @@ def RunXPy(sub, args, llvm_bins_path, zlib_path, libxml2_dirs, build_mac_arm,
265
265
RUSTENV ['CFLAGS' ] += f' -isysroot { sdk_path } '
266
266
RUSTENV ['CXXFLAGS' ] += f' -isysroot { sdk_path } '
267
267
RUSTENV ['LDFLAGS' ] += f' -isysroot { sdk_path } '
268
- RUSTENV ['RUSTFLAGS_BOOTSTRAP' ] += (f' -Clink-arg=-isysroot { sdk_path } ' )
268
+ RUSTENV ['RUSTFLAGS_BOOTSTRAP' ] += (
269
+ f' -Clink-arg=-isysroot -Clink-arg={ sdk_path } ' )
269
270
RUSTENV ['RUSTFLAGS_NOT_BOOTSTRAP' ] += (
270
- f' -Clink-arg=-isysroot { sdk_path } ' )
271
+ f' -Clink-arg=-isysroot -Clink-arg= { sdk_path } ' )
271
272
272
273
if zlib_path :
273
274
RUSTENV ['CFLAGS' ] += f' -I{ zlib_path } '
274
275
RUSTENV ['CXXFLAGS' ] += f' -I{ zlib_path } '
275
276
RUSTENV ['LDFLAGS' ] += f' { LD_PATH_FLAG } { zlib_path } '
276
- RUSTENV ['RUSTFLAGS_BOOTSTRAP' ] += (f' -Clink-arg='
277
- f' { LD_PATH_FLAG } { zlib_path } ' )
278
- RUSTENV ['RUSTFLAGS_NOT_BOOTSTRAP' ] += (f' -Clink-arg='
279
- f' { LD_PATH_FLAG } { zlib_path } ' )
277
+ RUSTENV ['RUSTFLAGS_BOOTSTRAP' ] += (
278
+ f' -Clink-arg= { LD_PATH_FLAG } { zlib_path } ' )
279
+ RUSTENV ['RUSTFLAGS_NOT_BOOTSTRAP' ] += (
280
+ f' -Clink-arg= { LD_PATH_FLAG } { zlib_path } ' )
280
281
281
282
if libxml2_dirs :
282
283
RUSTENV ['CFLAGS' ] += f' -I{ libxml2_dirs .include_dir } '
283
284
RUSTENV ['CXXFLAGS' ] += f' -I{ libxml2_dirs .include_dir } '
284
285
RUSTENV ['LDFLAGS' ] += f' { LD_PATH_FLAG } { libxml2_dirs .lib_dir } '
285
286
RUSTENV ['RUSTFLAGS_BOOTSTRAP' ] += (
286
- f' -Clink-arg='
287
- f'{ LD_PATH_FLAG } { libxml2_dirs .lib_dir } ' )
287
+ f' -Clink-arg={ LD_PATH_FLAG } { libxml2_dirs .lib_dir } ' )
288
288
RUSTENV ['RUSTFLAGS_NOT_BOOTSTRAP' ] += (
289
- f' -Clink-arg='
290
- f'{ LD_PATH_FLAG } { libxml2_dirs .lib_dir } ' )
289
+ f' -Clink-arg={ LD_PATH_FLAG } { libxml2_dirs .lib_dir } ' )
291
290
292
291
if gcc_toolchain_path :
293
292
# We use these flags to avoid linking with the system libstdc++.
294
- gcc_toolchain_flag = ( f'--gcc-toolchain={ gcc_toolchain_path } ' )
293
+ gcc_toolchain_flag = f'--gcc-toolchain={ gcc_toolchain_path } '
295
294
RUSTENV ['CFLAGS' ] += f' { gcc_toolchain_flag } '
296
295
RUSTENV ['CXXFLAGS' ] += f' { gcc_toolchain_flag } '
297
296
RUSTENV ['LDFLAGS' ] += f' { gcc_toolchain_flag } '
0 commit comments