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
1192
let output_path = flag_str(c!("o"), ptr::null(),c!("Output path"));
1193
1193
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 build program and just want to run it on the specified target without rebuilding it."),flag_name(run))));// memory leak
1194
1195
let help = flag_bool(c!("help"),false,c!("Print this help message"));
1195
1196
let linker = flag_list(c!("L"),c!("Append a flag to the linker of the target platform"));
1196
1197
let nostdlib = flag_bool(c!("nostdlib"),false,c!("Do not link with standard libraries like libb and/or libc on some platforms"));
// TODO: should be probably a list libb paths which we sequentually probe to find which one exists.
1261
-
// And of course we should also enable the user to append additional paths via the command line.
1262
-
// Paths to potentially check by default:
1263
-
// - Current working directory (like right now)
1264
-
// - Directory where the b executable resides
1265
-
// - Some system paths like /usr/include/libb on Linux? (Not 100% sure about this one)
1266
-
// - Some sort of instalation prefix? (Requires making build system more complicated)
1267
-
//
1268
-
// - rexim (2025-06-12 20:56:08)
1269
-
let libb_path = c!("./libb");
1270
-
if !file_exists(libb_path)? {
1271
-
log(Log_Level::ERROR,c!("No standard library path %s found. Please run the compiler from the same folder where %s is located. Or if you don't want to use the standard library pass the -%s flag."), libb_path, libb_path,flag_name(nostdlib));
1272
-
returnNone;
1260
+
if !*nobuild {
1261
+
if !*nostdlib {
1262
+
// TODO: should be probably a list libb paths which we sequentually probe to find which one exists.
1263
+
// And of course we should also enable the user to append additional paths via the command line.
1264
+
// Paths to potentially check by default:
1265
+
// - Current working directory (like right now)
1266
+
// - Directory where the b executable resides
1267
+
// - Some system paths like /usr/include/libb on Linux? (Not 100% sure about this one)
1268
+
// - Some sort of instalation prefix? (Requires making build system more complicated)
1269
+
//
1270
+
// - rexim (2025-06-12 20:56:08)
1271
+
let libb_path = c!("./libb");
1272
+
if !file_exists(libb_path)? {
1273
+
log(Log_Level::ERROR,c!("No standard library path %s found. Please run the compiler from the same folder where %s is located. Or if you don't want to use the standard library pass the -%s flag."), libb_path, libb_path,flag_name(nostdlib));
0 commit comments