mesa_noglu: fix build

LLVM’s `LLVM_TARGETS_TO_BUILD` build flag defauls to `all`, which contains
`AMDGPU` among others. [1] Changes in llvm [2] switched to explicitly listing
host and target platforms, excluding the AMDGPU target, which is required
for Mesa to build.

[1]: db50b6fe39/CMakeLists.txt (L286-L302)
[2]: https://github.com/NixOS/nixpkgs/pull/52031
This commit is contained in:
Jan Tojnar 2018-12-24 15:39:49 +01:00
parent 192f4171d8
commit ff22d90308
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
2 changed files with 4 additions and 2 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
}: