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