summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorDavid Abdurachmanov <david.abdurachmanov@sifive.com>2020-02-25 23:01:08 -0800
committerKhem Raj <raj.khem@gmail.com>2020-10-16 08:41:47 -0700
commit3596c70a0635f593340f33c9a88d10afcc14ddd9 (patch)
treecc370222934098f5cd0e3b8798b1ee801e714efb /classes
parentfbce3226dc57b40b0e53b403de7c187860bbaaf4 (diff)
downloadmeta-clang-3596c70a0635f593340f33c9a88d10afcc14ddd9.tar.gz
Fix get_clang_arch and LLVM targets
LLVM_TARGET_ARCH must be riscv32 or riscv64, which results in LLVM_NATIVE_ARCH being RISCV. We cannot pass RISCV to LLVM_TARGET_ARCH as that will cause "Unknown architecture" error at configure time. We already have all architectures listed in LLVM_TARGETS_TO_BUILD thus there is no need to append additional ones. That results in LLVM_NATIVE_ARCH being listed multiple times, e.g.: -DLLVM_TARGETS_TO_BUILD='AMDGPU;AArch64;ARM;BPF;Mips;PowerPC;RISCV;X86;RISCV;RISCV;RISCV' Furthermore get_clang_host_arch(), get_clang_target_arch() and get_clang_arch() now return riscv32 or riscv64, which is not a valid value for -DLLVM_TARGETS_TO_BUILD. The valid value is RISCV here. Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'classes')
0 files changed, 0 insertions, 0 deletions