Compare commits

..

2 Commits

Author SHA1 Message Date
David Mak 96f940f16c meta: Allow specifying compiler arguments for check_demos 2023-09-15 10:12:02 +08:00
David Mak 6f67d4cf8f artiq: Specify target CPU when creating LLVM target options
We can try to optimize for the host and Cortex-A9 chips; The RISC-V
ISAs do not target specific chips, so we will fallback to using the
generic CPU.
2023-09-15 10:11:55 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -692,7 +692,7 @@ impl Nac3 {
fn get_llvm_target_cpu(isa: Isa) -> String {
match isa {
Isa::Host => TargetMachine::get_host_cpu_name().to_string(),
Isa::RiscV32G | Isa::RiscV32IMA => "rv32-generic".to_string(),
Isa::RiscV32G | Isa::RiscV32IMA => "generic-rv32".to_string(),
Isa::CortexA9 => "cortex-a9".to_string(),
}
}