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 /src/Compilation.zig | |
| 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 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index c21bf71326..2c64657903 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -791,6 +791,7 @@ pub const InitOptions = struct { /// infinite recursion. skip_linker_dependencies: bool = false, parent_compilation_link_libc: bool = false, + entry: ?[]const u8 = null, stack_size_override: ?u64 = null, image_base_override: ?u64 = null, self_exe_path: ?[]const u8 = null, @@ -1572,6 +1573,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { .linker_optimization = linker_optimization, .major_subsystem_version = options.major_subsystem_version, .minor_subsystem_version = options.minor_subsystem_version, + .entry = options.entry, .stack_size_override = options.stack_size_override, .image_base_override = options.image_base_override, .include_compiler_rt = include_compiler_rt, |
