aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-01-19 11:41:08 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-01-19 11:41:08 -0700
commitfd6d1fe015c62cbdb52c9703384c0321b8c5ef01 (patch)
tree9be7f9b5f04ba747ef275a0f8349274b7c66befa /lib
parent5ae3e4e9bd5216c7cc2305c8996ed413c89c59e7 (diff)
downloadzig-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.zig5
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);
}