mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Merge 399aa62c7f into 66fe584ead
This commit is contained in:
commit
1ede6957f9
1 changed files with 2 additions and 1 deletions
|
|
@ -172,6 +172,7 @@ pub fn createEmpty(
|
|||
const optimize_mode = comp.root_mod.optimize_mode;
|
||||
const output_mode = comp.config.output_mode;
|
||||
const link_mode = comp.config.link_mode;
|
||||
const export_symbols = comp.config.rdynamic;
|
||||
|
||||
const allow_shlib_undefined = options.allow_shlib_undefined orelse false;
|
||||
|
||||
|
|
@ -185,7 +186,7 @@ pub fn createEmpty(
|
|||
try std.fmt.allocPrint(arena, "{s}_zcu.o", .{fs.path.stem(emit.sub_path)})
|
||||
else
|
||||
null,
|
||||
.gc_sections = options.gc_sections orelse (optimize_mode != .Debug),
|
||||
.gc_sections = options.gc_sections orelse (!export_symbols and optimize_mode != .Debug),
|
||||
.print_gc_sections = options.print_gc_sections,
|
||||
.stack_size = options.stack_size orelse 16777216,
|
||||
.allow_shlib_undefined = allow_shlib_undefined,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue