zig/src
mlugg 107b65ec5d Sema: explain why we tried to call an extern fn at comptime
I recently saw a user hit the "comptime call of extern function" error,
and get confused because they didn't know why the scope was `comptime`.
So, use `explainWhyBlockIsComptime` on this and related errors to add
all the relevant notes.

The added test case shows the motivating situation.
2025-01-29 18:43:24 +00:00
..
Air compiler: simplify generic functions, fix issues with inline calls 2025-01-21 02:41:42 +00:00
arch x86_64: rewrite @min/@max for float vectors 2025-01-26 09:51:07 -05:00
codegen Merge pull request #22581 from jacobly0/x86_64-rewrite 2025-01-25 07:30:45 -08:00
Compilation Compilation: Disable LTO by default. 2025-01-25 14:59:02 +01:00
link link: Set machine and float ABI when invoking ld.lld and lld-link. 2025-01-25 14:57:33 +01:00
Liveness dwarf: fix stepping through an inline loop containing one statement 2024-11-24 17:28:12 -05:00
Package Package.Module: Make create() fall back on options.global.root_optimize_mode. 2025-01-23 23:22:38 +00:00
Sema compiler: analyze type and value of global declaration separately 2024-12-24 02:18:41 +00:00
Zcu Merge pull request #22602 from mlugg/incr-embedfile 2025-01-26 01:41:56 +00:00
Air.zig x86_64: rewrite scalar and vector int @min and @max 2025-01-24 21:02:32 -05:00
Builtin.zig compiler: Improve the handling of unwind table levels. 2024-12-11 00:10:15 +01:00
clang.zig all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
clang_options.zig zig cc: honor all -m and -mno- CPU feature flags 2021-11-26 19:59:33 -07:00
clang_options_data.zig compiler: Improve the handling of unwind table levels. 2024-12-11 00:10:15 +01:00
codegen.zig compiler: simplify generic functions, fix issues with inline calls 2025-01-21 02:41:42 +00:00
Compilation.zig frontend: use main Compilation code_model when building libxx 2025-01-27 17:07:56 -08:00
crash_report.zig all: update for panic.unwrapError and panic.call signature changes 2025-01-24 22:33:23 +00:00
DarwinPosixSpawn.zig std.c.darwin.posix_spawn: fix signature 2024-12-16 14:53:54 +00:00
dev.zig x86_64: implement clz and not 2025-01-16 20:42:08 -05:00
fmt.zig compiler: introduce ZonGen and make ast-check run it for ZON inputs 2024-12-16 17:02:35 +00:00
glibc.zig reject crti.o/crtn.o, embrace the future 2025-01-20 20:59:52 -08:00
InternPool.zig Merge pull request #22602 from mlugg/incr-embedfile 2025-01-26 01:41:56 +00:00
introspect.zig Fix handling of empty XDG environment variables 2024-08-19 23:30:14 -07:00
libcxx.zig frontend: use main Compilation code_model when building libxx 2025-01-27 17:07:56 -08:00
libtsan.zig frontend: use main Compilation code_model when building libxx 2025-01-27 17:07:56 -08:00
libunwind.zig frontend: use main Compilation code_model when building libxx 2025-01-27 17:07:56 -08:00
link.zig fix merge conflicts with updating line numbers 2025-01-15 15:11:36 -08:00
Liveness.zig x86_64: implement switch jump tables 2025-01-16 20:42:08 -05:00
main.zig fix(cc): make link and preprocessor logic to be more consistent with 2025-01-29 10:48:36 +01:00
mingw.zig compiler: Rework LTO settings for some Zig-provided libraries. 2025-01-25 14:57:33 +01:00
musl.zig Merge pull request #22541 from ziglang/pipeline 2025-01-21 14:27:05 -05:00
mutable_value.zig all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
Package.zig fetch: filter unpack errors 2024-04-09 15:00:21 +02:00
print_air.zig x86_64: rewrite 2025-01-16 20:42:07 -05:00
print_env.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
print_targets.zig move zig libc command to be lazily built 2024-02-27 22:55:00 -07:00
print_value.zig compiler: simplify generic functions, fix issues with inline calls 2025-01-21 02:41:42 +00:00
print_zir.zig compiler: simplify generic functions, fix issues with inline calls 2025-01-21 02:41:42 +00:00
print_zoir.zig compiler: introduce ZonGen and make ast-check run it for ZON inputs 2024-12-16 17:02:35 +00:00
RangeSet.zig sema: rework type resolution to use Zcu when possible 2024-08-25 15:16:42 -07:00
register_manager.zig x86_64: fix crashes compiling the compiler and tests 2025-01-16 20:47:30 -05:00
Sema.zig Sema: explain why we tried to call an extern fn at comptime 2025-01-29 18:43:24 +00:00
target.zig compiler: Explicitly specify ABI for arm, mips, and powerpc when talking to LLVM. 2025-01-25 14:56:59 +01:00
ThreadSafeQueue.zig link.flushTaskQueue: move safety lock 2024-10-23 16:27:39 -07:00
tracy.zig Add build option to set tracy-callstack-depth in build.zig (#21990) 2024-11-29 12:13:06 -08:00
translate_c.zig all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
Type.zig Sema: @memcpy changes 2025-01-29 06:35:22 +00:00
Value.zig Sema: @memcpy changes 2025-01-29 06:35:22 +00:00
wasi_libc.zig fix build failure when llvm not available 2025-01-20 20:59:52 -08:00
Zcu.zig Merge pull request #22602 from mlugg/incr-embedfile 2025-01-26 01:41:56 +00:00
zig_clang.cpp zig_clang: Update to Clang 19. 2024-09-19 18:20:20 -07:00
zig_clang.h zig_clang: Update to Clang 19. 2024-09-19 18:20:20 -07:00
zig_clang_cc1_main.cpp compiler: Update LLVM/Clang driver files to LLVM/Clang 19. 2024-09-19 18:20:20 -07:00
zig_clang_cc1as_main.cpp compiler: Update LLVM/Clang driver files to LLVM/Clang 19. 2024-09-19 18:20:20 -07:00
zig_clang_driver.cpp compiler: Update LLVM/Clang driver files to LLVM/Clang 19. 2024-09-19 18:20:20 -07:00
zig_llvm-ar.cpp compiler: Update LLVM/Clang driver files to LLVM/Clang 19. 2024-09-19 18:20:20 -07:00
zig_llvm.cpp zig_llvm: Reduce our exposure to LLVM API breakage. 2024-10-31 01:27:22 +01:00
zig_llvm.h zig_llvm: Reduce our exposure to LLVM API breakage. 2024-10-31 01:27:22 +01:00