mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +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
|
||||
, debugVersion ? false
|
||||
, enableManpages ? false
|
||||
, enableTargets ? [ stdenv.hostPlatform stdenv.targetPlatform ]
|
||||
# Mesa requires AMDGPU target
|
||||
, enableTargets ? [ stdenv.hostPlatform stdenv.targetPlatform "AMDGPU" ]
|
||||
, enableSharedLibraries ? true
|
||||
}:
|
||||
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
, debugVersion ? false
|
||||
, enableManpages ? false
|
||||
, enableSharedLibraries ? true
|
||||
, enableTargets ? [ stdenv.hostPlatform stdenv.targetPlatform ]
|
||||
# Mesa requires AMDGPU target
|
||||
, enableTargets ? [ stdenv.hostPlatform stdenv.targetPlatform "AMDGPU" ]
|
||||
, enablePFM ? !stdenv.isDarwin
|
||||
}:
|
||||
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
rec {
|
||||
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"
|
||||
else if platform.parsed.cpu.name == "aarch64" then
|
||||
"AArch64"
|
||||
|
|
Loading…
Reference in a new issue