| ... | @@ -384,6 +384,7 @@ fn addCcArgs( | ... | @@ -384,6 +384,7 @@ fn addCcArgs( |
| 384 | try args.appendSlice(&[_][]const u8{ | 384 | try args.appendSlice(&[_][]const u8{ |
| 385 | "-std=c99", | 385 | "-std=c99", |
| 386 | "-ffreestanding", | 386 | "-ffreestanding", |
| | 387 | "-fno-builtin", |
| 387 | "-fexcess-precision=standard", | 388 | "-fexcess-precision=standard", |
| 388 | "-frounding-math", | 389 | "-frounding-math", |
| 389 | "-fno-strict-aliasing", | 390 | "-fno-strict-aliasing", |
| ... | @@ -422,6 +423,10 @@ fn addCcArgs( | ... | @@ -422,6 +423,10 @@ fn addCcArgs( |
| 422 | "-Qunused-arguments", | 423 | "-Qunused-arguments", |
| 423 | "-w", // disable all warnings | 424 | "-w", // disable all warnings |
| 424 | }); | 425 | }); |
| | 426 | |
| | 427 | if (target.cpu.arch.isThumb()) { |
| | 428 | try args.append("-mimplicit-it=always"); |
| | 429 | } |
| 425 | } | 430 | } |
| 426 | | 431 | |
| 427 | fn start_asm_path(comp: *Compilation, arena: Allocator, basename: []const u8) ![]const u8 { | 432 | fn start_asm_path(comp: *Compilation, arena: Allocator, basename: []const u8) ![]const u8 { |