1
Fork 0

add rustc_codegen_ssa support for csky and correct some code

This commit is contained in:
Dirreke 2023-07-14 19:16:38 +08:00 committed by dirreke
parent 8ed7aa16bd
commit 8c51e28bd5
7 changed files with 26 additions and 3 deletions

View file

@ -6,7 +6,7 @@ use crate::spec::{Target, TargetOptions};
pub fn target() -> Target {
Target {
//https://github.com/llvm/llvm-project/blob/8b76aea8d8b1b71f6220bc2845abc749f18a19b7/clang/lib/Basic/Targets/CSKY.h
llvm_target: "csky-unknown-linux".into(),
llvm_target: "csky-unknown-linux-gnuabiv2".into(),
pointer_width: 32,
data_layout: "e-m:e-S32-p:32:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:32-v128:32:32-a:0:32-Fi32-n32".into(),
arch: "csky".into(),