rustc_target/spec/base/
vxworks.rs

1use crate::spec::{TargetOptions, cvs};
2
3pub(crate) fn opts() -> TargetOptions {
4    TargetOptions {
5        os: "vxworks".into(),
6        env: "gnu".into(),
7        vendor: "wrs".into(),
8        linker: Some("wr-c++".into()),
9        exe_suffix: ".vxe".into(),
10        dynamic_linking: true,
11        families: cvs!["unix"],
12        has_rpath: true,
13        has_thread_local: true,
14        crt_static_default: true,
15        crt_static_respected: true,
16        crt_static_allows_dylibs: true,
17        // VxWorks needs to implement this to support profiling
18        mcount: "_mcount".into(),
19        ..Default::default()
20    }
21}