]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/vxworks_base.rs
Rollup merge of #86685 - RalfJung:alloc-mut, r=oli-obk
[rust.git] / compiler / rustc_target / src / spec / vxworks_base.rs
1 use crate::spec::TargetOptions;
2
3 pub fn opts() -> TargetOptions {
4     TargetOptions {
5         os: "vxworks".to_string(),
6         env: "gnu".to_string(),
7         vendor: "wrs".to_string(),
8         linker: Some("wr-c++".to_string()),
9         exe_suffix: ".vxe".to_string(),
10         dynamic_linking: true,
11         executables: true,
12         families: vec!["unix".to_string()],
13         has_rpath: true,
14         has_elf_tls: true,
15         crt_static_default: true,
16         crt_static_respected: true,
17         crt_static_allows_dylibs: true,
18         // VxWorks needs to implement this to support profiling
19         mcount: "_mcount".to_string(),
20         ..Default::default()
21     }
22 }