diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-10-05 15:13:37 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-10-05 15:13:37 +0200 |
| commit | 84e192c88b2a970b249c7a7480e14717535b6096 (patch) | |
| tree | db460c21cc6016e7d3ae78feff9e86874b69631c /src/target.zig | |
| parent | 043b1adb8dff184deaf9e145e6045b36b9bf733b (diff) | |
| download | zig-84e192c88b2a970b249c7a7480e14717535b6096.tar.gz zig-84e192c88b2a970b249c7a7480e14717535b6096.zip | |
std.Target: Introduce Abi.ohoseabi to distinguish the soft float case.
For the same reason as #21504.
Diffstat (limited to 'src/target.zig')
| -rw-r--r-- | src/target.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target.zig b/src/target.zig index 5847d3d8cd..2d7917c196 100644 --- a/src/target.zig +++ b/src/target.zig @@ -46,7 +46,7 @@ pub fn requiresPIC(target: std.Target, linking_libc: bool) bool { target.os.tag == .windows or target.os.tag == .uefi or osRequiresLibC(target) or (linking_libc and target.isGnuLibC()) or - (target.abi == .ohos and target.cpu.arch == .aarch64); + (target.cpu.arch == .aarch64 and target.abi == .ohos); } pub fn picLevel(target: std.Target) u32 { |
