Merge pull request #52772 from jtojnar/mesa-noglu-fix

mesa_noglu: fix build
This commit is contained in:
Jan Tojnar 2018-12-25 16:08:00 +01:00 committed by GitHub
commit d406ea6d8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View file

@ -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
}:

View file

@ -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
}:

View file

@ -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"