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:
@@ -13,7 +13,8 @@
|
|||||||
, fetchpatch
|
, fetchpatch
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableTargets ? [ stdenv.hostPlatform stdenv.targetPlatform ]
|
# Mesa requires AMDGPU target
|
||||||
|
, enableTargets ? [ stdenv.hostPlatform stdenv.targetPlatform "AMDGPU" ]
|
||||||
, enableSharedLibraries ? true
|
, enableSharedLibraries ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
, enableManpages ? false
|
, enableManpages ? false
|
||||||
, enableSharedLibraries ? true
|
, enableSharedLibraries ? true
|
||||||
, enableTargets ? [ stdenv.hostPlatform stdenv.targetPlatform ]
|
# Mesa requires AMDGPU target
|
||||||
|
, enableTargets ? [ stdenv.hostPlatform stdenv.targetPlatform "AMDGPU" ]
|
||||||
, enablePFM ? !stdenv.isDarwin
|
, enablePFM ? !stdenv.isDarwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user