Merge pull request #86283 from Ericson2314/fix-mistakes
meson: Fix my mistakes
This commit is contained in:
commit
e9d8303727
@ -3,6 +3,7 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
, writeTextDir
|
, writeTextDir
|
||||||
, substituteAll
|
, substituteAll
|
||||||
|
, pkgsHostHost
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
@ -58,6 +59,10 @@ python3Packages.buildPythonApplication rec {
|
|||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
|
# Ensure there will always be a native C compiler when meson is used, as a
|
||||||
|
# workaround until https://github.com/mesonbuild/meson/pull/6512 lands.
|
||||||
|
depsHostHostPropagated = [ pkgsHostHost.stdenv.cc ];
|
||||||
|
|
||||||
# 0.45 update enabled tests but they are failing
|
# 0.45 update enabled tests but they are failing
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
# checkInputs = [ ninja pkgconfig ];
|
# checkInputs = [ ninja pkgconfig ];
|
||||||
|
@ -257,8 +257,8 @@ in rec {
|
|||||||
mesonFlags = if mesonFlags == null then null else let
|
mesonFlags = if mesonFlags == null then null else let
|
||||||
# See https://mesonbuild.com/Reference-tables.html#cpu-families
|
# See https://mesonbuild.com/Reference-tables.html#cpu-families
|
||||||
cpuFamily = platform: with platform;
|
cpuFamily = platform: with platform;
|
||||||
/**/ if isAarch64 then "arm"
|
/**/ if isAarch32 then "arm"
|
||||||
else if isAarch32 then "aarch64"
|
else if isAarch64 then "aarch64"
|
||||||
else if isx86_32 then "x86"
|
else if isx86_32 then "x86"
|
||||||
else if isx86_64 then "x86_64"
|
else if isx86_64 then "x86_64"
|
||||||
else platform.parsed.cpu.family + builtins.toString platform.parsed.cpu.bits;
|
else platform.parsed.cpu.family + builtins.toString platform.parsed.cpu.bits;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user