| ... | @@ -295,27 +295,8 @@ pub fn resolve(options: Options) ResolveError!Config { | ... | @@ -295,27 +295,8 @@ pub fn resolve(options: Options) ResolveError!Config { |
| 295 | } | 295 | } |
| 296 | | 296 | |
| 297 | if (options.lto) |x| break :b x; | 297 | if (options.lto) |x| break :b x; |
| 298 | if (!options.any_c_source_files) break :b .none; | | |
| 299 | | | |
| 300 | // https://github.com/llvm/llvm-project/pull/116537 | | |
| 301 | switch (target.abi) { | | |
| 302 | .gnuabin32, | | |
| 303 | .gnuilp32, | | |
| 304 | .gnux32, | | |
| 305 | .ilp32, | | |
| 306 | .muslabin32, | | |
| 307 | .muslx32, | | |
| 308 | => break :b .none, | | |
| 309 | else => {}, | | |
| 310 | } | | |
| 311 | | 298 | |
| 312 | break :b switch (options.output_mode) { | 299 | break :b .none; |
| 313 | .Lib, .Obj => .none, | | |
| 314 | .Exe => switch (root_optimize_mode) { | | |
| 315 | .Debug => .none, | | |
| 316 | .ReleaseSafe, .ReleaseFast, .ReleaseSmall => .full, | | |
| 317 | }, | | |
| 318 | }; | | |
| 319 | }; | 300 | }; |
| 320 | | 301 | |
| 321 | const link_libcpp = b: { | 302 | const link_libcpp = b: { |