]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_target/spec/x86_64_rumprun_netbsd.rs
Add target_mcount option
[rust.git] / src / librustc_target / spec / x86_64_rumprun_netbsd.rs
index a2c706c4c723231d05bfdba06511f0b20c149560..f6861f2a6872727943578fb28b8b8e4ea30702a3 100644 (file)
@@ -1,4 +1,4 @@
-use crate::spec::{LinkerFlavor, Target, TargetResult};
+use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
 
 pub fn target() -> TargetResult {
     let mut base = super::netbsd_base::opts();
@@ -24,6 +24,9 @@ pub fn target() -> TargetResult {
         target_env: String::new(),
         target_vendor: "rumprun".to_string(),
         linker_flavor: LinkerFlavor::Gcc,
-        options: base,
+        options: TargetOptions {
+            target_mcount: "__mcount".to_string(),
+            .. base
+        },
     })
 }