infer hard float from target environments that imply it

This commit is contained in:
Andrew Kelley 2017-02-05 00:16:49 -05:00
parent e56f903522
commit 74d41ce44b

View File

@ -733,7 +733,14 @@ enum FloatAbi {
};
static FloatAbi get_float_abi(const Triple &triple) {
zig_panic("TODO implement get_float_abi for ARM");
if (triple.getEnvironment() == Triple::GNUEABIHF ||
triple.getEnvironment() == Triple::EABIHF ||
triple.getEnvironment() == Triple::MuslEABIHF)
{
return FloatAbiHard;
} else {
zig_panic("TODO: user needs to input if they want hard or soft floating point");
}
}
Buf *get_dynamic_linker(LLVMTargetMachineRef target_machine_ref) {