diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-27 13:20:13 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 19:49:07 -0700 |
| commit | 791e83c22396e029e0f2bc19b75fd86f8cd7851f (patch) | |
| tree | 674d129710f6920bcfb81b345b283723b0d9ee99 /src/main.zig | |
| parent | 476484f09c98a3a49e0a6be3b92d563ad362ee04 (diff) | |
| download | zig-791e83c22396e029e0f2bc19b75fd86f8cd7851f.tar.gz zig-791e83c22396e029e0f2bc19b75fd86f8cd7851f.zip | |
frontend: make dll_export_fns=false on non-windows
Fixes a regression introduced in this branch.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig index a8ff0721ad..1470653f1e 100644 --- a/src/main.zig +++ b/src/main.zig @@ -3842,8 +3842,8 @@ fn createModule( create_module.opts.any_dyn_libs = true; create_module.resolved_options = Compilation.Config.resolve(create_module.opts) catch |err| switch (err) { - error.WasiExecModelRequiresWasi => fatal("execution model only allowed for WASI OS targets", .{}), - error.SharedMemoryIsWasmOnly => fatal("shared memory only allowed for WebAssembly CPU targets", .{}), + error.WasiExecModelRequiresWasi => fatal("only WASI OS targets support execution model", .{}), + error.SharedMemoryIsWasmOnly => fatal("only WebAssembly CPU targets support shared memory", .{}), error.ObjectFilesCannotShareMemory => fatal("object files cannot share memory", .{}), error.SharedMemoryRequiresAtomicsAndBulkMemory => fatal("shared memory requires atomics and bulk_memory CPU features", .{}), error.ThreadsRequireSharedMemory => fatal("threads require shared memory", .{}), @@ -3869,6 +3869,7 @@ fn createModule( error.LlvmLibraryUnavailable => fatal("zig was compiled without LLVM libraries", .{}), error.LldUnavailable => fatal("zig was compiled without LLD libraries", .{}), error.ClangUnavailable => fatal("zig was compiled without Clang libraries", .{}), + error.DllExportFnsRequiresWindows => fatal("only Windows OS targets support DLLs", .{}), }; } |
