-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Expand file tree
/
Copy pathvxworks_base.rs
More file actions
23 lines (22 loc) · 706 Bytes
/
vxworks_base.rs
File metadata and controls
23 lines (22 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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,
os_family: Some("unix".to_string()),
linker_is_gnu: true,
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(),
..Default::default()
}
}