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:
Jan Tojnar 2018-12-24 15:38:52 +01:00
parent ef935fa101
commit 192f4171d8
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -2,7 +2,9 @@
rec {
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"
else if platform.parsed.cpu.name == "aarch64" then
"AArch64"