Skip to content

Commit 35a3060

Browse files
author
pg
committed
better
commit_hash:044bb76cacea25d38a1939236f98aa8e3d6b4def
1 parent 9f88f6f commit 35a3060

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build/scripts/link_dyn_lib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ def parse_args(args):
203203

204204
cmd = args
205205
cmd = fix_cmd(opts.arch, cmd)
206-
207206
cmd = ProcessWholeArchiveOption(opts.arch, opts.whole_archive_peers, opts.whole_archive_libs).construct_cmd(cmd)
208207
thinlto_cache.preprocess(opts, cmd)
209208

build/ymake_conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,10 @@ def get_sdk_root(sdk):
13881388

13891389
def setup_sdk(self, project, var):
13901390
self.platform_projects.append(project)
1391-
self.c_flags_platform.append('--sysroot={}'.format(var))
1391+
if is_positive('MUSL'):
1392+
self.c_flags_platform.append('--sysroot=/nowhere')
1393+
else:
1394+
self.c_flags_platform.append('--sysroot={}'.format(var))
13921395
self.swift_flags_platform += ['-sdk', var]
13931396

13941397
def setup_xcode_sdk(self, project, var):

0 commit comments

Comments
 (0)