| ... | ... | @@ -975,6 +975,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 975 | 975 | const unwind_tables = options.want_unwind_tables orelse |
| 976 | 976 | (link_libunwind or target_util.needUnwindTables(options.target)); |
| 977 | 977 | const link_eh_frame_hdr = options.link_eh_frame_hdr or unwind_tables; |
| 978 | const build_id = options.build_id orelse false; |
| 978 | 979 | |
| 979 | 980 | // Make a decision on whether to use LLD or our own linker. |
| 980 | 981 | const use_lld = options.use_lld orelse blk: { |
| ... | ... | @@ -1005,7 +1006,8 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1005 | 1006 | options.output_mode == .Lib or |
| 1006 | 1007 | options.image_base_override != null or |
| 1007 | 1008 | options.linker_script != null or options.version_script != null or |
| 1008 | | options.emit_implib != null) |
| 1009 | options.emit_implib != null or |
| 1010 | build_id) |
| 1009 | 1011 | { |
| 1010 | 1012 | break :blk true; |
| 1011 | 1013 | } |
| ... | ... | @@ -1640,7 +1642,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1640 | 1642 | .skip_linker_dependencies = options.skip_linker_dependencies, |
| 1641 | 1643 | .parent_compilation_link_libc = options.parent_compilation_link_libc, |
| 1642 | 1644 | .each_lib_rpath = options.each_lib_rpath orelse options.is_native_os, |
| 1643 | | .build_id = options.build_id orelse false, |
| 1645 | .build_id = build_id, |
| 1644 | 1646 | .cache_mode = cache_mode, |
| 1645 | 1647 | .disable_lld_caching = options.disable_lld_caching or cache_mode == .whole, |
| 1646 | 1648 | .subsystem = options.subsystem, |