]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/vxworks_base.rs
Merge commit '98e2b9f25b6db4b2680a3d388456d9f95cb28344' into clippyup
[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         os_family: Some("unix".to_string()),
13         linker_is_gnu: true,
14         has_rpath: true,
15         has_elf_tls: true,
16         crt_static_default: true,
17         crt_static_respected: true,
18         crt_static_allows_dylibs: true,
19         // VxWorks needs to implement this to support profiling
20         mcount: "_mcount".to_string(),
21         ..Default::default()
22     }
23 }