Expose pinned Expat headers to Zig Linux compiler adapters
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
1 parent
618427df2b
commit
0cccf559ea
1 file changed
+2
-2
@@ -67,7 +67,7 @@ def compiler(config, tool, incoming):
|
||||
"-F", config["sdk"] + "/System/Library/Frameworks", "-Wno-elaborated-enum-base",
|
||||
] if "macos" in target else []
|
||||
if config.get('linux_abi_headers'):
|
||||
args += ['-I' + config['linux_abi_headers']]
|
||||
args += ['-idirafter', config['linux_abi_headers']]
|
||||
if config.get('linux_headers'):
|
||||
args += ['-idirafter', config['linux_headers'], '-idirafter', config['linux_headers'] + '/freetype2']
|
||||
if config.get('linux_sysroot') and '-c' not in incoming and '-o' in incoming:
|
||||
@@ -252,7 +252,7 @@ def prepare(args):
|
||||
abi = output / 'include-linux'
|
||||
abi.mkdir(exist_ok=True)
|
||||
cpu = 'x86_64' if config['target'].startswith('x86_64') else 'aarch64'
|
||||
for name in ('ffi.h', 'ffitarget.h'):
|
||||
for name in ('ffi.h', 'ffitarget.h', 'expat.h', 'expat_external.h'):
|
||||
for prefix in (root / 'usr/include' / (cpu + '-linux-gnu'), root / 'usr/include'):
|
||||
src = prefix / name
|
||||
if src.is_file():
|
||||
|
||||
Reference in new issue
Block a user