feat(build_settings): Added a section to init_build_context to target the thumbv7em-non-eabihf when the cortex-m7 processor is selected

This commit is contained in:
MauriceElliott
2026-06-23 22:03:22 +01:00
parent 8afac0f32f
commit 954f988d2b

View File

@@ -1828,6 +1828,12 @@ gb_internal void init_build_context(TargetMetrics *cross_target, Subtarget subta
bc->metrics = *metrics;
if (bc->metrics.os == TargetOs_freestanding &&
bc->metrics.arch == TargetArch_arm32 &&
bc->microarch == str_lit("cortex-m7")) {
bc->metrics.target_triplet = str_lit("thumbv7em-none-eabihf");
}
bc->ODIN_OS = target_os_names[metrics->os];
bc->ODIN_ARCH = target_arch_names[metrics->arch];
bc->endian_kind = target_endians[metrics->arch];