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]: https://github.com/llvm-mirror/llvm/blob/db50b6fe399b8ad8caef80fd8ee77607fb051fa5/CMakeLists.txt#L286-L302
[2]: https://github.com/NixOS/nixpkgs/pull/52031
This commit is contained in:
Jan Tojnar
2018-12-24 23:41:36 +01:00
parent 192f4171d8
commit ff22d90308
2 changed files with 4 additions and 2 deletions
+2 -1
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
}:
+2 -1
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
}: