File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change
1
+ Wrapper for `cargo build` that cross-compiles core, compiler_builtins and alloc
2
+
3
+ USAGE:
4
+ cargo xbuild [OPTIONS]
5
+
6
+ OPTIONS:
7
+ -h, --help Prints help information and exit
8
+ ---version Prints version information and exit
9
+
10
+ Any additional options are directly passed to `cargo build` (see
11
+ `cargo build --help` for possible options).
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ mod sysroot;
31
31
mod util;
32
32
mod xargo;
33
33
34
+ const HELP : & str = include_str ! ( "help.txt" ) ;
35
+
34
36
// We use a different sysroot for Native compilation to avoid file locking
35
37
//
36
38
// Cross compilation requires `lib/rustlib/$HOST` to match `rustc`'s sysroot,
@@ -118,7 +120,10 @@ fn run() -> Result<Option<ExitStatus>> {
118
120
let ( command, args) = cli:: args ( ) ?;
119
121
match command {
120
122
Command :: Build => Ok ( Some ( build ( args) ?) ) ,
121
- Command :: Help => unimplemented ! ( ) ,
123
+ Command :: Help => {
124
+ print ! ( "{}" , HELP ) ;
125
+ Ok ( None )
126
+ }
122
127
Command :: Version => {
123
128
writeln ! (
124
129
io:: stdout( ) ,
You can’t perform that action at this time.
0 commit comments