You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let target_name = flag_str(c!("t"), default_target_name,c!("Compilation target. Pass \"list\" to get the list of available targets."));
1192
1195
let output_path = flag_str(c!("o"), ptr::null(),c!("Output path"));
1193
1196
let run = flag_bool(c!("run"),false,c!("Run the compiled program (if applicable for the target)"));
1194
-
let nobuild = flag_bool(c!("nobuild"),false,strdup(temp_sprintf(c!("Skip the build step. Useful in conjunction with the -%s flag when you already have a built program and just want to run it on the specified target without rebuilding it."),flag_name(run))));// memory leak
1197
+
let nobuild = flag_bool(c!("nobuild"),false,temp_sprintf(c!("Skip the build step. Useful in conjunction with the -%s flag when you already have a built program and just want to run it on the specified target without rebuilding it."),flag_name(run)));
1195
1198
let help = flag_bool(c!("help"),false,c!("Print this help message"));
1196
-
let linker = flag_list(c!("L"),c!("Append a flag to the linker of the target platform"));
1199
+
let codegen_args = flag_list(CODEGEN_FLAG_NAME,temp_sprintf(c!("Pass an argument to the codegen of the current target selected by the -%s flag. Pass argument `-%s help` to learn more about what current codegen provides. All sorts of linker flag parameters are probably there."),flag_name(target_name),CODEGEN_FLAG_NAME));
1200
+
let linker = {
1201
+
let name = c!("L");
1202
+
flag_list(name,temp_sprintf(c!("DEPRECATED! Append a flag to the linker of the target platform. But not every target even has a linker! For backward compatibility we transform `-%s foo -%s bar -%s ...` into `-%s link-args='foo bar ...'` but do not expect every codegen to support that. Use `-%s help` to learn more about what your current codegen supports. Expect this flag to be removed entirely in the future"), name, name, name,CODEGEN_FLAG_NAME,CODEGEN_FLAG_NAME))
1203
+
};
1197
1204
let nostdlib = flag_bool(c!("nostdlib"),false,c!("Do not link with standard libraries like libb and/or libc on some platforms"));
1198
1205
let ir = flag_bool(c!("ir"),false,c!("Instead of compiling, dump the IR of the program to stdout"));
1199
1206
let historical = flag_bool(c!("hist"),false,c!("Makes the compiler strictly follow the description of the B language from the \"Users' Reference to B\" by Ken Thompson as much as possible"));
0 commit comments