authorgravatar for 45465154+ee7@users.noreply.github.comee7 <45465154+ee7@users.noreply.github.com> 2023-02-04 19:08:01+01:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-02-04 23:24:07+02:00
log289e8fab7949bebfc39209b86a69317a53e747f8
tree41db5d1786c825af45cdf379b153cca71d5595fe
parent1876eaec51cab1251a53391f4b4d0fd227e83710

langref, tools: rename --single-threaded to -fsingle-threaded

Commit 40f5e5dfc60e ("CLI: introduce -fsingle-threaded/ -fno-single-threaded", 2021-12-01) removed the `--single-threaded` option, but didn't update all mentions of it. $ zig version 0.11.0-dev.1568+c9b957c93 $ zig build-exe --help | grep single -fsingle-threaded Code assumes there is only one thread -fno-single-threaded Code may not assume there is only one thread $ zig build-exe --single-threaded foo.zig error: unrecognized parameter: '--single-threaded'

2 files changed, 2 insertions(+), 2 deletions(-)

doc/langref.html.in+1-1
...@@ -9604,7 +9604,7 @@ pub fn build(b: *std.Build) void {...@@ -9604,7 +9604,7 @@ pub fn build(b: *std.Build) void {
9604 {#header_close#}9604 {#header_close#}
96059605
9606 {#header_open|Single Threaded Builds#}9606 {#header_open|Single Threaded Builds#}
9607 <p>Zig has a compile option <kbd>--single-threaded</kbd> which has the following effects:</p>9607 <p>Zig has a compile option <kbd>-fsingle-threaded</kbd> which has the following effects:</p>
9608 <ul>9608 <ul>
9609 <li>All {#link|Thread Local Variables#} are treated as regular {#link|Container Level Variables#}.</li>9609 <li>All {#link|Thread Local Variables#} are treated as regular {#link|Container Level Variables#}.</li>
9610 <li>The overhead of {#link|Async Functions#} becomes equivalent to function call overhead.</li>9610 <li>The overhead of {#link|Async Functions#} becomes equivalent to function call overhead.</li>
tools/update_cpu_features.zig+1-1
...@@ -1306,7 +1306,7 @@ fn usageAndExit(file: fs.File, arg0: []const u8, code: u8) noreturn {...@@ -1306,7 +1306,7 @@ fn usageAndExit(file: fs.File, arg0: []const u8, code: u8) noreturn {
1306 \\1306 \\
1307 \\Updates lib/std/target/<target>.zig from llvm/lib/Target/<Target>/<Target>.td .1307 \\Updates lib/std/target/<target>.zig from llvm/lib/Target/<Target>/<Target>.td .
1308 \\1308 \\
1309 \\On a less beefy system, or when debugging, compile with --single-threaded.1309 \\On a less beefy system, or when debugging, compile with -fsingle-threaded.
1310 \\1310 \\
1311 , .{arg0}) catch std.process.exit(1);1311 , .{arg0}) catch std.process.exit(1);
1312 std.process.exit(code);1312 std.process.exit(code);