llvm: allow passing arbitrary targets
Mesa requires AMDGPU target but previously, we only allowed a pre-defined set of targets.
This commit is contained in:
parent
ef935fa101
commit
192f4171d8
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
rec {
|
rec {
|
||||||
llvmBackend = platform:
|
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"
|
"X86"
|
||||||
else if platform.parsed.cpu.name == "aarch64" then
|
else if platform.parsed.cpu.name == "aarch64" then
|
||||||
"AArch64"
|
"AArch64"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user