mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 05:20:34 +00:00
mutex protect comp.arena in --verbose-link
This commit is contained in:
parent
2530d638d6
commit
5e11790c7b
@ -775,6 +775,9 @@ pub fn loadInput(self: *Elf, input: link.Input) !void {
|
||||
const is_static_lib = self.base.isStaticLib();
|
||||
|
||||
if (comp.verbose_link) {
|
||||
comp.mutex.lock(); // protect comp.arena
|
||||
defer comp.mutex.unlock();
|
||||
|
||||
const argv = &self.dump_argv_list;
|
||||
switch (input) {
|
||||
.res => unreachable,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user