]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_target/spec/aarch64_unknown_none.rs
Auto merge of #68414 - michaelwoerister:share-drop-glue, r=alexcrichton
[rust.git] / src / librustc_target / spec / aarch64_unknown_none.rs
index 8c02bc61088b48ca8e66ea99f533e887dfedfa0b..13e62b60ca8f5bd418015a20b16319c6cb28e306 100644 (file)
@@ -1,4 +1,4 @@
-// Generic AArch64 target for bare-metal code
+// Generic AArch64 target for bare-metal code - Floating point enabled
 //
 // Can be used in conjunction with the `target-feature` and
 // `target-cpu` compiler flags to opt-in more hardware-specific
@@ -6,12 +6,12 @@
 //
 // For example, `-C target-cpu=cortex-a53`.
 
-use super::{LldFlavor, LinkerFlavor, Target, TargetOptions, PanicStrategy};
+use super::{LinkerFlavor, LldFlavor, PanicStrategy, Target, TargetOptions};
 
 pub fn target() -> Result<Target, String> {
     let opts = TargetOptions {
         linker: Some("rust-lld".to_owned()),
-        features: "+strict-align".to_string(),
+        features: "+strict-align,+neon,+fp-armv8".to_string(),
         executables: true,
         relocation_model: "static".to_string(),
         disable_redzone: true,
@@ -19,7 +19,7 @@ pub fn target() -> Result<Target, String> {
         max_atomic_width: Some(128),
         panic_strategy: PanicStrategy::Abort,
         abi_blacklist: super::arm_base::abi_blacklist(),
-        .. Default::default()
+        ..Default::default()
     };
     Ok(Target {
         llvm_target: "aarch64-unknown-none".to_string(),