diff --git a/pmb/build/init.py b/pmb/build/init.py index 58e15535..9592bf1b 100644 --- a/pmb/build/init.py +++ b/pmb/build/init.py @@ -115,11 +115,12 @@ def init(chroot: Chroot = Chroot.native()) -> bool: def init_compiler(context: Context, depends: list[str], cross: CrossCompile, arch: Arch) -> None: arch_str = str(arch) cross_pkgs = ["ccache-cross-symlinks", "abuild"] + # FIXME: cleanup this logic if "gcc4" in depends: cross_pkgs += ["gcc4-" + arch_str] elif "gcc6" in depends: cross_pkgs += ["gcc6-" + arch_str] - else: + elif arch != Arch.native(): cross_pkgs += ["gcc-" + arch_str, "g++-" + arch_str] if "clang" in depends or "clang-dev" in depends: cross_pkgs += ["clang"]