summaryrefslogtreecommitdiff
path: root/ci/ciimage/opensuse
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2024-10-02 18:57:21 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2024-10-02 22:58:50 +0300
commit9d0de83368c89ff7fc54ec95d5f15ec29e8e0f0e (patch)
treea7ccb89b3f262ba727cb45c6e8a6ae8a67f958dd /ci/ciimage/opensuse
parent114a3e29144c99c6ff36c656ab3d72fd5aa36f6e (diff)
downloadmeson-9d0de83368c89ff7fc54ec95d5f15ec29e8e0f0e.tar.gz
env2mfile: Base cpu on DEB_HOST_GNU_CPU unless DEB_HOST_ARCH is special
`DEB_HOST_ARCH` encodes both the CPU family and the OS, so using it to get the CPU type gives the wrong answer for non-Linux ports. However, `DEB_HOST_GNU_CPU` gives less detailed information about the CPU: it's `arm` for all 32-bit ARM CPUs, and doesn't distinguish between the differing baselines of `armel` (ARMv5 softfloat) and `armhf` (ARMv7 hardfloat). When cross-compiling for x86_64 Linux, this changes the `cpu()` from `amd64` to `x86_64`, which is consistent with the answer we get during native builds on that architecture. When cross-compiling for `ppc64el`, this changes the `cpu()` from `ppc64el` to `ppc64`, which is a reasonable change but is still not consistent with what we see during native builds (which is `ppc64le`): see #13741 for that. Resolves: https://github.com/mesonbuild/meson/issues/13742 Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'ci/ciimage/opensuse')
0 files changed, 0 insertions, 0 deletions