mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 00:57:04 +00:00
llvm: Set float ABI based on std.Target.floatAbi().
This commit is contained in:
parent
af370a69cd
commit
92517fbd62
@ -1284,8 +1284,7 @@ pub const Object = struct {
|
||||
.large => .Large,
|
||||
};
|
||||
|
||||
// TODO handle float ABI better- it should depend on the ABI portion of std.Target
|
||||
const float_abi: llvm.ABIType = .Default;
|
||||
const float_abi: llvm.ABIType = if (comp.root_mod.resolved_target.result.floatAbi() == .hard) .Hard else .Soft;
|
||||
|
||||
var target_machine = llvm.TargetMachine.create(
|
||||
target,
|
||||
|
Loading…
Reference in New Issue
Block a user