We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd9dbb commit 614d4f2Copy full SHA for 614d4f2
src/cmd/rel.rs
@@ -104,6 +104,9 @@ pub struct MakeArgs {
104
#[argp(option, short = 'n')]
105
/// (optional) module names
106
names: Vec<String>,
107
+ #[argp(option, short = 'v')]
108
+ /// (optional) REL version (default is 3)
109
+ version: Option<u32>,
110
#[argp(switch, short = 'w')]
111
/// disable warnings
112
no_warn: bool,
@@ -364,7 +367,7 @@ fn make(args: MakeArgs) -> Result<()> {
364
367
let _span = info_span!("file", path = %module_info.path).entered();
365
368
let mut info = RelWriteInfo {
366
369
module_id: module_info.module_id,
- version: 3,
370
+ version: args.version.unwrap_or(3),
371
name_offset: None,
372
name_size: None,
373
align: None,
0 commit comments