diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-19 13:43:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-19 13:43:40 -0500 |
| commit | 4e8fedffd12e1f995f38369421391f5a12035a99 (patch) | |
| tree | 9be7f9b5f04ba747ef275a0f8349274b7c66befa /lib/std | |
| parent | beb7495e19d23b4814e16772888e80688ad10e47 (diff) | |
| parent | fd6d1fe015c62cbdb52c9703384c0321b8c5ef01 (diff) | |
| download | zig-4e8fedffd12e1f995f38369421391f5a12035a99.tar.gz zig-4e8fedffd12e1f995f38369421391f5a12035a99.zip | |
Merge pull request #10475 from lithdew/master
lld: allow for entrypoint symbol name to be set
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/build.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/std/build.zig b/lib/std/build.zig index 09f57a8cfa..24513c6b2e 100644 --- a/lib/std/build.zig +++ b/lib/std/build.zig @@ -1554,6 +1554,8 @@ pub const LibExeObjStep = struct { subsystem: ?std.Target.SubSystem = null, + entry_symbol_name: ?[]const u8 = null, + /// Overrides the default stack size stack_size: ?u64 = null, @@ -2255,6 +2257,11 @@ pub const LibExeObjStep = struct { try zig_args.append(@tagName(builder.color)); } + if (self.entry_symbol_name) |entry| { + try zig_args.append("--entry"); + try zig_args.append(entry); + } + if (self.stack_size) |stack_size| { try zig_args.append("--stack"); try zig_args.append(try std.fmt.allocPrint(builder.allocator, "{}", .{stack_size})); |
