mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
Merge pull request #52772 from jtojnar/mesa-noglu-fix
mesa_noglu: fix build
This commit is contained in:
commit
d406ea6d8e
3 changed files with 7 additions and 3 deletions
|
@ -13,7 +13,8 @@
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableTargets ? [ stdenv.hostPlatform stdenv.targetPlatform ]
|
# Mesa requires AMDGPU target
|
||||||
|
, enableTargets ? [ stdenv.hostPlatform stdenv.targetPlatform "AMDGPU" ]
|
||||||
, enableSharedLibraries ? true
|
, enableSharedLibraries ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,8 @@
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableSharedLibraries ? true
|
, enableSharedLibraries ? true
|
||||||
, enableTargets ? [ stdenv.hostPlatform stdenv.targetPlatform ]
|
# Mesa requires AMDGPU target
|
||||||
|
, enableTargets ? [ stdenv.hostPlatform stdenv.targetPlatform "AMDGPU" ]
|
||||||
, enablePFM ? !stdenv.isDarwin
|
, enablePFM ? !stdenv.isDarwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
llvmBackend = platform:
|
llvmBackend = platform:
|
||||||
if platform.parsed.cpu.family == "x86" then
|
if builtins.typeOf platform == "string" then
|
||||||
|
platform
|
||||||
|
else if platform.parsed.cpu.family == "x86" then
|
||||||
"X86"
|
"X86"
|
||||||
else if platform.parsed.cpu.name == "aarch64" then
|
else if platform.parsed.cpu.name == "aarch64" then
|
||||||
"AArch64"
|
"AArch64"
|
||||||
|
|
Loading…
Reference in a new issue