2021-03-28 00:02:23 +03:00
|
|
|
use crate::spec::TargetOptions;
|
2019-07-15 23:57:53 -07:00
|
|
|
|
|
|
|
|
pub fn opts() -> TargetOptions {
|
|
|
|
|
TargetOptions {
|
2020-11-08 14:57:55 +03:00
|
|
|
os: "vxworks".to_string(),
|
|
|
|
|
env: "gnu".to_string(),
|
|
|
|
|
vendor: "wrs".to_string(),
|
2019-08-12 10:46:57 -07:00
|
|
|
linker: Some("wr-c++".to_string()),
|
2019-07-15 23:57:53 -07:00
|
|
|
exe_suffix: ".vxe".to_string(),
|
|
|
|
|
dynamic_linking: true,
|
|
|
|
|
executables: true,
|
2021-04-10 23:22:58 +03:00
|
|
|
families: vec!["unix".to_string()],
|
2019-07-15 23:57:53 -07:00
|
|
|
has_rpath: true,
|
|
|
|
|
has_elf_tls: true,
|
2019-08-12 10:46:57 -07:00
|
|
|
crt_static_default: true,
|
|
|
|
|
crt_static_respected: true,
|
|
|
|
|
crt_static_allows_dylibs: true,
|
|
|
|
|
// VxWorks needs to implement this to support profiling
|
2020-11-08 14:57:55 +03:00
|
|
|
mcount: "_mcount".to_string(),
|
2019-12-22 17:42:04 -05:00
|
|
|
..Default::default()
|
2019-07-15 23:57:53 -07:00
|
|
|
}
|
|
|
|
|
}
|