| ... | @@ -125,11 +125,11 @@ pub fn main() !void { | ... | @@ -125,11 +125,11 @@ pub fn main() !void { |
| 125 | install_prefix = nextArgOrFatal(args, &arg_idx); | 125 | install_prefix = nextArgOrFatal(args, &arg_idx); |
| 126 | } else if (mem.eql(u8, arg, "-l") or mem.eql(u8, arg, "--list-steps")) { | 126 | } else if (mem.eql(u8, arg, "-l") or mem.eql(u8, arg, "--list-steps")) { |
| 127 | steps_menu = true; | 127 | steps_menu = true; |
| 128 | } else if (mem.eql(u8, arg, "--system-lib")) { | 128 | } else if (mem.startsWith(u8, arg, "-fsys=")) { |
| 129 | const name = nextArgOrFatal(args, &arg_idx); | 129 | const name = arg["-fsys=".len..]; |
| 130 | graph.system_library_options.put(arena, name, .user_enabled) catch @panic("OOM"); | 130 | graph.system_library_options.put(arena, name, .user_enabled) catch @panic("OOM"); |
| 131 | } else if (mem.eql(u8, arg, "--no-system-lib")) { | 131 | } else if (mem.startsWith(u8, arg, "-fno-sys=")) { |
| 132 | const name = nextArgOrFatal(args, &arg_idx); | 132 | const name = arg["-fno-sys=".len..]; |
| 133 | graph.system_library_options.put(arena, name, .user_disabled) catch @panic("OOM"); | 133 | graph.system_library_options.put(arena, name, .user_disabled) catch @panic("OOM"); |
| 134 | } else if (mem.eql(u8, arg, "--host-target")) { | 134 | } else if (mem.eql(u8, arg, "--host-target")) { |
| 135 | graph.host_query_options.arch_os_abi = nextArgOrFatal(args, &arg_idx); | 135 | graph.host_query_options.arch_os_abi = nextArgOrFatal(args, &arg_idx); |
| ... | @@ -1111,13 +1111,13 @@ fn usage(b: *std.Build, out_stream: anytype) !void { | ... | @@ -1111,13 +1111,13 @@ fn usage(b: *std.Build, out_stream: anytype) !void { |
| 1111 | \\ | 1111 | \\ |
| 1112 | \\System Integration Options: | 1112 | \\System Integration Options: |
| 1113 | \\ --system [dir] System Package Mode. Disable fetching; prefer system libs | 1113 | \\ --system [dir] System Package Mode. Disable fetching; prefer system libs |
| | 1114 | \\ -fsys=[name] Enable a system integration |
| | 1115 | \\ -fno-sys=[name] Disable a system integration |
| 1114 | \\ --host-target [triple] Use the provided target as the host | 1116 | \\ --host-target [triple] Use the provided target as the host |
| 1115 | \\ --host-cpu [cpu] Use the provided CPU as the host | 1117 | \\ --host-cpu [cpu] Use the provided CPU as the host |
| 1116 | \\ --host-dynamic-linker [path] Use the provided dynamic linker as the host | 1118 | \\ --host-dynamic-linker [path] Use the provided dynamic linker as the host |
| 1117 | \\ --system-lib [name] Use the system-provided library | | |
| 1118 | \\ --no-system-lib [name] Do not use the system-provided library | | |
| 1119 | \\ | 1119 | \\ |
| 1120 | \\ Available System Library Integrations: Enabled: | 1120 | \\ Available System Integrations: Enabled: |
| 1121 | \\ | 1121 | \\ |
| 1122 | ); | 1122 | ); |
| 1123 | if (b.graph.system_library_options.entries.len == 0) { | 1123 | if (b.graph.system_library_options.entries.len == 0) { |