cortex-m3 set to thumb isa (#17)

wch-ch32v003
Matt Knight 3 years ago committed by GitHub
parent c34d8b73d5
commit 6b85ecfdcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -133,7 +133,7 @@ pub fn addEmbeddedExecutable(
// - Generate the linker scripts from the "chip" or "board" package instead of using hardcoded ones.
// - This requires building another tool that runs on the host that compiles those files and emits the linker script.
// - src/tools/linkerscript-gen.zig is the source file for this
exe.bundle_compiler_rt = false;
exe.bundle_compiler_rt = true;
switch (backing) {
.chip => {
var app_pkgs = std.ArrayList(Pkg).init(builder.allocator);

@ -22,7 +22,7 @@ pub const cortex_m3 = Cpu{
.name = "ARM Cortex-M3",
.path = root_path ++ "cpus/cortex-m/cortex-m.zig",
.target = std.zig.CrossTarget{
.cpu_arch = .arm,
.cpu_arch = .thumb,
.cpu_model = .{ .explicit = &std.Target.arm.cpu.cortex_m3 },
.os_tag = .freestanding,
.abi = .none,

Loading…
Cancel
Save