| ... | @@ -6835,8 +6835,11 @@ pub fn addCCArgs( | ... | @@ -6835,8 +6835,11 @@ pub fn addCCArgs( |
| 6835 | } | 6835 | } |
| 6836 | } | 6836 | } |
| 6837 | | 6837 | |
| 6838 | if (target.cpu.arch.isArm()) { | 6838 | if (target.cpu.arch.isThumb()) { |
| 6839 | try argv.append(if (target.cpu.arch.isThumb()) "-mthumb" else "-mno-thumb"); | 6839 | try argv.append(switch (ext) { |
| | 6840 | .assembly, .assembly_with_cpp => "-Wa,-mthumb", |
| | 6841 | else => "-mthumb", |
| | 6842 | }); |
| 6840 | } | 6843 | } |
| 6841 | | 6844 | |
| 6842 | if (target_util.llvmMachineAbi(target)) |mabi| { | 6845 | if (target_util.llvmMachineAbi(target)) |mabi| { |