mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
makepkg.conf: fix HOSTSPEC used when _not_ setting up cross-compilation
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
This commit is contained in:
parent
949183b290
commit
1a6979d9cb
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ def generate_makepkg_conf(arch: str, cross: bool = False, chroot: str = None) ->
|
|||
Generate a makepkg.conf. For use with crosscompiling, specify `cross=True` and pass as `chroot`
|
||||
the relative path inside the native chroot where the foreign chroot will be mounted.
|
||||
"""
|
||||
hostspec = GCC_HOSTSPECS[config.runtime['arch']][arch]
|
||||
hostspec = GCC_HOSTSPECS[config.runtime['arch'] if cross else arch][arch]
|
||||
cflags = CFLAGS_ARCHES[arch] + CFLAGS_GENERAL
|
||||
if cross and not chroot:
|
||||
raise Exception('Cross-compile makepkg conf requested but no chroot path given: "{chroot}"')
|
||||
|
|
Loading…
Add table
Reference in a new issue