Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Jul 20, 2024
1 parent f8436db commit 7cd4639
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::spec::{base, Cc, LinkerFlavor, Target, TargetOptions};
use crate::spec::{base, Cc, LinkerFlavor, Lld, Target, TargetOptions};

pub fn target() -> Target {
Target {
Expand All @@ -22,18 +22,12 @@ pub fn target() -> Target {
data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32".into(),
arch: "aarch64".into(),
options: TargetOptions {
// TODO: need?
linker: Some("qcc".into()),
// TODO: need?
linker_flavor: LinkerFlavor::Unix(Cc::Yes),
features: "+v8a".into(),
max_atomic_width: Some(128),
pre_link_args: TargetOptions::link_args(
// TODO: Unix or Gnu(Yes,No)?
LinkerFlavor::Unix(Cc::Yes),
LinkerFlavor::Gnu(Cc::Yes, Lld::No),
&["-Vgcc_ntoaarch64le_cxx"],
),
// relocation_model: crate::spec::RelocModel::Pie,
env: "nto70".into(),
..base::nto_qnx::opts()
},
Expand Down

0 comments on commit 7cd4639

Please # to comment.