mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
arm: use armv7 instead of thumbv7
At the moment, thumbv7 is crashing. I'm not exactly sure why, but it appears that there is an unknown instruction in __aeabi_uldivmod (probably from libgcc). I've fixed this by switching to armv7, which is also somewhat modern. Maybe we can switch back to Thumb2 (aka thumbv7) once we start using musl and compiler-rt. In the meantime, this does fix a miscompilation (illegal instruction).
This commit is contained in:
committed by
Ron Evans
parent
04040453b4
commit
36f1517e8d
@@ -172,7 +172,7 @@ func LoadTarget(target string) (*TargetSpec, error) {
|
||||
"386": "i386",
|
||||
"amd64": "x86_64",
|
||||
"arm64": "aarch64",
|
||||
"arm": "thumbv7",
|
||||
"arm": "armv7",
|
||||
}[goarch]
|
||||
if llvmarch == "" {
|
||||
llvmarch = goarch
|
||||
|
||||
Reference in New Issue
Block a user