Add WSL Woodpecker cross-build test and prefer bundled headers

This commit is contained in:
geruipu committed 2026-10-05 16:14:08 +08:00
1 parent 2694645d0d
commit e5cc03dfe3
3 files changed
+71 -1

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ def compiler(config, tool, incoming):
if config.get('linux_abi_headers'):
args += ['-I' + config['linux_abi_headers']]
if config.get('linux_headers'):
args += ['-I' + config['linux_headers'], '-I' + config['linux_headers'] + '/freetype2']
args += ['-idirafter', config['linux_headers'], '-idirafter', config['linux_headers'] + '/freetype2']
if config.get('linux_sysroot') and '-c' not in incoming and '-o' in incoming:
root = Path(config['linux_sysroot'])
cpu = 'x86_64' if target.startswith('x86_64') else 'aarch64'