aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorDavid Rubin <daviru007@icloud.com>2024-04-29 13:37:47 -0700
committerJakub Konka <kubkon@jakubkonka.com>2024-06-19 20:13:21 +0200
commite5a3a10a5a255cc01f3b9944a09a76753e32a8b7 (patch)
tree436e0b48915dca5ddbaf723dc54b83991432631c /src/main.zig
parenta154d8da8e39e5d0ed180b4a1e5150349699e5df (diff)
downloadzig-e5a3a10a5a255cc01f3b9944a09a76753e32a8b7.tar.gz
zig-e5a3a10a5a255cc01f3b9944a09a76753e32a8b7.zip
add error message for `-fno-llvm` `-flld`
We plan to remove all dependency on LLD either way, so this will not be a supported usecase.
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index 21f7281d74..6b6dd0ec39 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -3949,6 +3949,7 @@ fn createModule(
error.ZigLacksTargetSupport => fatal("compiler backend unavailable for the specified target", .{}),
error.EmittingBinaryRequiresLlvmLibrary => fatal("producing machine code via LLVM requires using the LLVM library", .{}),
error.LldIncompatibleObjectFormat => fatal("using LLD to link {s} files is unsupported", .{@tagName(target.ofmt)}),
+ error.LldCannotIncrementallyLink => fatal("self-hosted backends do not support linking with LLD", .{}),
error.LtoRequiresLld => fatal("LTO requires using LLD", .{}),
error.SanitizeThreadRequiresLibCpp => fatal("thread sanitization is (for now) implemented in C++, so it requires linking libc++", .{}),
error.LibCppRequiresLibUnwind => fatal("libc++ requires linking libunwind", .{}),