aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread/Mutex.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-01-19 22:19:50 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-19 22:26:13 -0700
commit29cce62a259384e7daffe8fa68a0edf34377c6b3 (patch)
treed0e7439e7669b54e8588e204cbb0f98dce136cd8 /lib/std/Thread/Mutex.zig
parent41eff5723dd61b19be88830f16d76514583e3339 (diff)
downloadzig-29cce62a259384e7daffe8fa68a0edf34377c6b3.tar.gz
zig-29cce62a259384e7daffe8fa68a0edf34377c6b3.zip
CLI: introduce -M; deprecate --mod
I changed my mind on how the CLI for Zig modules should work. I don't like that `--mod` takes 2 parameters. Instead let's swing all the way in the other direction: `-M[name][=src]` This is shorter (Zig CLI invocations are long enough already), avoids the double parameter edge case, and supports the concept of omitting the source file part of the argument, which was already wanted for `-Mstd`. The legacy way to encode that was `--mod std ''` - awkward! Undocumented support for `--mod` remains so that this branch does not need a zig1.wasm update. The next time that file is updated, support for `--mod` can be dropped. Importantly, this commit also adds support for modules that do not have a root zig source file. In such case, it sets root to cwd and root_src_path to empty string, and only sets have_zcu to true if a module is provided with a root zig source file.
Diffstat (limited to 'lib/std/Thread/Mutex.zig')
0 files changed, 0 insertions, 0 deletions