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 /src/main.zig | |
| 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 'src/main.zig')
| -rw-r--r-- | src/main.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 3561315989..9aedb42d38 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1485,6 +1485,9 @@ fn buildOutputType( .sysroot => { sysroot = it.only_arg; }, + .entry => { + entry = it.only_arg; + }, } } // Parse linker args. @@ -4156,6 +4159,7 @@ pub const ClangArgIterator = struct { exec_model, emit_llvm, sysroot, + entry, }; const Args = struct { |
