aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
authorkcbanner <kcbanner@gmail.com>2022-11-09 00:50:29 -0500
committerkcbanner <kcbanner@gmail.com>2023-01-04 21:45:06 -0500
commitb97a68c529b5db15705f4d542d8ead616d27c880 (patch)
tree4a88814249684640687fbde316fe0ad0bf9256d6 /src/link.zig
parent0471eea0e2cac49946449efe4698d5ac18c0dc0d (diff)
downloadzig-b97a68c529b5db15705f4d542d8ead616d27c880.tar.gz
zig-b97a68c529b5db15705f4d542d8ead616d27c880.zip
windows: supporting changes for boostrapping via msvc
- add support for passing through .def files to the linker, required for building libLTO.dll in LLVM - fixup libcpp linking conditionals - add option to skip linking zstd for use in bootstrapping (when building against an LLVM with LLVM_ENABLE_ZSTD=OFF)
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/link.zig b/src/link.zig
index 0a526db0de..410d1232af 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -219,6 +219,13 @@ pub const Options = struct {
/// (Darwin) remove dylibs that are unreachable by the entry point or exported symbols
dead_strip_dylibs: bool = false,
+ /// (Windows) PDB source path prefix to instruct the linker how to resolve relative
+ /// paths when consolidating CodeView streams into a single PDB file.
+ pdb_source_path: ?[]const u8 = null,
+
+ /// (Windows) .def file to specify when linking
+ module_definition_file: ?[] const u8 = null,
+
pub fn effectiveOutputMode(options: Options) std.builtin.OutputMode {
return if (options.use_lld) .Obj else options.output_mode;
}