| ... | ... | @@ -143,7 +143,7 @@ pub fn libcNeedsLibUnwind(target: std.Target) bool { |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | pub fn requiresPIE(target: std.Target) bool { |
| 146 | | return target.isAndroid(); |
| 146 | return target.isAndroid() or target.isDarwin(); |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /// This function returns whether non-pic code is completely invalid on the given target. |
| ... | ... | @@ -336,3 +336,7 @@ pub fn is_libcpp_lib_name(target: std.Target, name: []const u8) bool { |
| 336 | 336 | eqlIgnoreCase(ignore_case, name, "stdc++") or |
| 337 | 337 | eqlIgnoreCase(ignore_case, name, "c++abi"); |
| 338 | 338 | } |
| 339 | |
| 340 | pub fn hasDebugInfo(target: std.Target) bool { |
| 341 | return !target.cpu.arch.isWasm(); |
| 342 | } |