aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-06-04 06:53:14 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-06-04 06:54:10 +0200
commit0ccd2b0c5cdf4bee706b4a9341b97f786b19a978 (patch)
tree1c6b62ef1ea5794c8ca0d71d7f4f37680c683bc4 /src/main.zig
parenta81fb5fb76131d0df3042f20e2d20a3b9216b254 (diff)
downloadzig-0ccd2b0c5cdf4bee706b4a9341b97f786b19a978.tar.gz
zig-0ccd2b0c5cdf4bee706b4a9341b97f786b19a978.zip
compiler: Always dynamically link executables for Fuchsia.
Fuchsia only supports PIE executables, specifically ET_DYN. https://fuchsia.dev/fuchsia-src/concepts/process/program_loading
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 73ba082e65..ade23312b7 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -4118,6 +4118,7 @@ fn createModule(
error.LibCppRequiresLibC => fatal("libc++ requires linking libc", .{}),
error.LibUnwindRequiresLibC => fatal("libunwind requires linking libc", .{}),
error.TargetCannotDynamicLink => fatal("dynamic linking unavailable on the specified target", .{}),
+ error.TargetCannotStaticLinkExecutables => fatal("static linking of executables unavailable on the specified target", .{}),
error.LibCRequiresDynamicLinking => fatal("libc of the specified target requires dynamic linking", .{}),
error.SharedLibrariesRequireDynamicLinking => fatal("using shared libraries requires dynamic linking", .{}),
error.ExportMemoryAndDynamicIncompatible => fatal("exporting memory is incompatible with dynamic linking", .{}),