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:
parent
192f4171d8
commit
ff22d90308
@ -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
|
||||
}:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user