File tree Expand file tree Collapse file tree 6 files changed +40
-1
lines changed Expand file tree Collapse file tree 6 files changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ wasi = { version = "0.11.0", features = [
90
90
r-efi = { version = " 4.5.0" , features = [' rustc-dep-of-std' ] }
91
91
r-efi-alloc = { version = " 1.0.0" , features = [' rustc-dep-of-std' ] }
92
92
93
+ [target .'cfg(target_os = "vexos")' .dependencies ]
94
+ vex-sdk = { version = " 0.16.1" , features = [' rustc-dep-of-std' ] }
95
+
93
96
[features ]
94
97
backtrace = [
95
98
' addr2line/rustc-dep-of-std' ,
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ fn main() {
56
56
|| target_os == "zkvm"
57
57
|| target_os == "rtems"
58
58
|| target_os == "nuttx"
59
+ || target_os == "vexos"
59
60
60
61
// See src/bootstrap/src/core/build_steps/synthetic_targets.rs
61
62
|| env:: var ( "RUSTC_BOOTSTRAP_SYNTHETIC_TARGET" ) . is_ok ( )
Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ cfg_if::cfg_if! {
61
61
} else if #[ cfg( target_os = "zkvm" ) ] {
62
62
mod zkvm;
63
63
pub use self :: zkvm:: * ;
64
+ } else if #[ cfg( target_os = "vexos" ) ] {
65
+ mod vexos;
66
+ pub use self :: vexos:: * ;
64
67
} else {
65
68
mod unsupported;
66
69
pub use self :: unsupported:: * ;
Original file line number Diff line number Diff line change
1
+ #[ path = "../unsupported/alloc.rs" ]
2
+ pub mod alloc;
3
+ #[ path = "../unsupported/args.rs" ]
4
+ pub mod args;
5
+ #[ path = "../unsupported/env.rs" ]
6
+ pub mod env;
7
+ #[ path = "../unsupported/fs.rs" ]
8
+ pub mod fs;
9
+ #[ path = "../unsupported/io.rs" ]
10
+ pub mod io;
11
+ #[ path = "../unsupported/net.rs" ]
12
+ pub mod net;
13
+ #[ path = "../unsupported/os.rs" ]
14
+ pub mod os;
15
+ #[ path = "../unsupported/pipe.rs" ]
16
+ pub mod pipe;
17
+ #[ path = "../unsupported/process.rs" ]
18
+ pub mod process;
19
+ #[ path = "../unsupported/stdio.rs" ]
20
+ pub mod stdio;
21
+ #[ path = "../unsupported/thread.rs" ]
22
+ pub mod thread;
23
+ #[ path = "../unsupported/thread_local_key.rs" ]
24
+ pub mod thread_local_key;
25
+ #[ path = "../unsupported/time.rs" ]
26
+ pub mod time;
27
+
28
+ #[ path = "../unsupported/common.rs" ]
29
+ #[ deny( unsafe_op_in_unsafe_fn) ]
30
+ mod common;
31
+ pub use common:: * ;
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ pub struct Finder {
33
33
//
34
34
// Targets can be removed from this list once they are present in the stage0 compiler (usually by updating the beta compiler of the bootstrap).
35
35
const STAGE0_MISSING_TARGETS : & [ & str ] = & [
36
+ "armv7a-vex-v5" ,
36
37
// just a dummy comment so the list doesn't get onelined
37
38
"armv7-rtems-eabihf" ,
38
39
"riscv32e-unknown-none-elf" ,
Original file line number Diff line number Diff line change @@ -665,7 +665,7 @@ impl Build {
665
665
}
666
666
// Generate memcpy, etc. FIXME: Remove this once compiler-builtins
667
667
// automatically detects this target.
668
- if target. contains ( "zkvm" ) {
668
+ if target. contains ( "zkvm" ) || target . contains ( "vex" ) {
669
669
features. insert ( "compiler-builtins-mem" ) ;
670
670
}
671
671
You can’t perform that action at this time.
0 commit comments