mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-11 10:29:32 +00:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user