diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-19 11:41:08 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-19 11:41:08 -0700 |
| commit | fd6d1fe015c62cbdb52c9703384c0321b8c5ef01 (patch) | |
| tree | 9be7f9b5f04ba747ef275a0f8349274b7c66befa /lib | |
| parent | 5ae3e4e9bd5216c7cc2305c8996ed413c89c59e7 (diff) | |
| download | zig-fd6d1fe015c62cbdb52c9703384c0321b8c5ef01.tar.gz zig-fd6d1fe015c62cbdb52c9703384c0321b8c5ef01.zip | |
stage2: improvements to entry point handling
* rename `entry` to `entry_symbol_name` for the zig build API
* integrate with `zig cc` command line options
* integrate with COFF linking with LLD
* integrate with self-hosted ELF linker
* don't put it in the hash for MachO since it is ignored
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/build.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/std/build.zig b/lib/std/build.zig index 47f721c2ba..24513c6b2e 100644 --- a/lib/std/build.zig +++ b/lib/std/build.zig @@ -1554,8 +1554,7 @@ pub const LibExeObjStep = struct { subsystem: ?std.Target.SubSystem = null, - /// Entrypoint symbol name - entry: ?[]const u8 = null, + entry_symbol_name: ?[]const u8 = null, /// Overrides the default stack size stack_size: ?u64 = null, @@ -2258,7 +2257,7 @@ pub const LibExeObjStep = struct { try zig_args.append(@tagName(builder.color)); } - if (self.entry) |entry| { + if (self.entry_symbol_name) |entry| { try zig_args.append("--entry"); try zig_args.append(entry); } |
