| author | |
| committer | |
| log | 41185d297ffcaf61776aa8e7610aea9d00fce3a4 |
| tree | 7cff1564f7a71bb3d76d5f2cfa4158c2e339fa46 |
| parent | ef4d7f01a5c26d8ed6fa8236d1b64e4091a51be3 |
| signature |
As is done for root_strip and root_error_tracing.2 files changed, 3 insertions(+), 1 deletions(-)
src/Compilation/Config.zig+2| ... | ... | @@ -56,6 +56,7 @@ export_memory: bool, |
| 56 | 56 | shared_memory: bool, |
| 57 | 57 | is_test: bool, |
| 58 | 58 | debug_format: DebugFormat, |
| 59 | root_optimize_mode: std.builtin.OptimizeMode, | |
| 59 | 60 | root_strip: bool, |
| 60 | 61 | root_error_tracing: bool, |
| 61 | 62 | dll_export_fns: bool, |
| ... | ... | @@ -508,6 +509,7 @@ pub fn resolve(options: Options) ResolveError!Config { |
| 508 | 509 | .use_lld = use_lld, |
| 509 | 510 | .wasi_exec_model = wasi_exec_model, |
| 510 | 511 | .debug_format = debug_format, |
| 512 | .root_optimize_mode = root_optimize_mode, | |
| 511 | 513 | .root_strip = root_strip, |
| 512 | 514 | .dll_export_fns = dll_export_fns, |
| 513 | 515 | .rdynamic = rdynamic, |
src/Package/Module.zig+1-1| ... | ... | @@ -119,7 +119,7 @@ pub fn create(arena: Allocator, options: CreateOptions) !*Package.Module { |
| 119 | 119 | const target = resolved_target.result; |
| 120 | 120 | |
| 121 | 121 | const optimize_mode = options.inherited.optimize_mode orelse |
| 122 | if (options.parent) |p| p.optimize_mode else .Debug; | |
| 122 | if (options.parent) |p| p.optimize_mode else options.global.root_optimize_mode; | |
| 123 | 123 | |
| 124 | 124 | const strip = b: { |
| 125 | 125 | if (options.inherited.strip) |x| break :b x; |