Files
rust/compiler/rustc_target/src/spec/vxworks_base.rs

23 lines
676 B
Rust
Raw Normal View History

use crate::spec::TargetOptions;
pub fn opts() -> TargetOptions {
TargetOptions {
os: "vxworks".to_string(),
env: "gnu".to_string(),
vendor: "wrs".to_string(),
linker: Some("wr-c++".to_string()),
exe_suffix: ".vxe".to_string(),
dynamic_linking: true,
executables: true,
families: vec!["unix".to_string()],
has_rpath: true,
has_elf_tls: true,
crt_static_default: true,
crt_static_respected: true,
crt_static_allows_dylibs: true,
// VxWorks needs to implement this to support profiling
mcount: "_mcount".to_string(),
2019-12-22 17:42:04 -05:00
..Default::default()
}
}