| ... | @@ -5636,6 +5636,13 @@ fn detectLibCFromLibCInstallation(arena: Allocator, target: Target, lci: *const | ... | @@ -5636,6 +5636,13 @@ fn detectLibCFromLibCInstallation(arena: Allocator, target: Target, lci: *const |
| 5636 | if (!is_redundant) list.appendAssumeCapacity(lci.sys_include_dir.?); | 5636 | if (!is_redundant) list.appendAssumeCapacity(lci.sys_include_dir.?); |
| 5637 | | 5637 | |
| 5638 | if (target.os.tag == .windows) { | 5638 | if (target.os.tag == .windows) { |
| | 5639 | if (std.fs.path.dirname(lci.sys_include_dir.?)) |sys_include_dir_parent| { |
| | 5640 | // This include path will only exist when the optional "Desktop development with C++" |
| | 5641 | // is installed. It contains headers, .rc files, and resources. It is especially |
| | 5642 | // necessary when working with Windows resources. |
| | 5643 | const atlmfc_dir = try std.fs.path.join(arena, &[_][]const u8{ sys_include_dir_parent, "atlmfc", "include" }); |
| | 5644 | list.appendAssumeCapacity(atlmfc_dir); |
| | 5645 | } |
| 5639 | if (std.fs.path.dirname(lci.include_dir.?)) |include_dir_parent| { | 5646 | if (std.fs.path.dirname(lci.include_dir.?)) |include_dir_parent| { |
| 5640 | const um_dir = try std.fs.path.join(arena, &[_][]const u8{ include_dir_parent, "um" }); | 5647 | const um_dir = try std.fs.path.join(arena, &[_][]const u8{ include_dir_parent, "um" }); |
| 5641 | list.appendAssumeCapacity(um_dir); | 5648 | list.appendAssumeCapacity(um_dir); |