zig/test
Andrew Kelley 4797fdb3db fix deadlock with build-exe on an object for windows
The steps to repro this issue are:

zig build-obj hello.zig -target x86_64-windows-msvc
zig build-exe hello.obj -target x86_64-windows-msvc --subsystem console
-lkernel32 -lntdll

What was happening is that the main Compilation added a work item to
produce kernel32.lib. Then it added a sub-Compilation to build zig's
libc, which ended up calling a function with extern "kernel32", which
caused the sub-Compilation to also try to produce kernel32.lib. The main
Compilation and sub-Compilation do not coordinate about the set of
import libraries that they will be trying to build, so this caused a
deadlock.

This commit solves the problem by disabling the extern "foo" feature
from working when building compiler_rt or libc. Zig's linker code is now
responsible for putting the appropriate import libs on the linker line,
if any for compiler_rt and libc.

Related: #5825
2020-12-11 17:23:55 -07:00
..
src tests: run-translated-c now respects -Dtarget 2020-12-08 13:56:56 -07:00
stage1 stage1: Fix typeInfo generation for arrays w/o sentinel 2020-11-29 11:39:35 -07:00
stage2 Merge pull request #6883 from Vexu/translate-c 2020-10-31 15:25:14 +02:00
standalone fix deadlock with build-exe on an object for windows 2020-12-11 17:23:55 -07:00
assemble_and_link.zig update std lib to new Target API 2020-02-28 14:51:54 -05:00
cli.zig Merge pull request #7355 from ziglang/lld-child-process 2020-12-09 00:32:30 -07:00
compare_output.zig test & docs fixups to work with new semantics 2020-03-19 09:53:55 -04:00
compile_errors.zig stage1: compile error for pointer arithmetic on ptr-to-array 2020-12-03 17:46:21 -07:00
gen_h.zig run zig fmt on src/ and test/ 2020-10-31 12:21:49 +02:00
run_translated_c.zig translate_c: fix shadowing on nested blocks 2020-08-31 20:29:57 +03:00
runtime_safety.zig Merge pull request #7313 from LemonBoy/booo 2020-12-06 12:37:18 -07:00
stack_traces.zig Update stack traces testcases 2020-10-28 17:46:26 +07:00
standalone.zig fix deadlock with build-exe on an object for windows 2020-12-11 17:23:55 -07:00
tests.zig tests: run-translated-c now respects -Dtarget 2020-12-08 13:56:56 -07:00
translate_c.zig translate-c: fix macro functions with no arguments 2020-11-06 12:48:52 +02:00