diff options
author | Elliott Sales de Andrade <[email protected]> | 2022-04-10 23:54:34 -0400 |
---|---|---|
committer | Ayke <[email protected]> | 2022-04-11 14:58:55 +0200 |
commit | 4858b2712065b9695a348d7a5c3558669d41c6a1 (patch) | |
tree | 31a1aa38862548cc40fb2c913e1d78717f5a672d /builder | |
parent | 7f507a70269086404cc43c391193f42ae7523111 (diff) | |
download | tinygo-4858b2712065b9695a348d7a5c3558669d41c6a1.tar.gz tinygo-4858b2712065b9695a348d7a5c3558669d41c6a1.zip |
Also disable asynchronous unwind tables
These seem to be enabled in LLVM 14, and cause undefined symbol errors.
Diffstat (limited to 'builder')
-rw-r--r-- | builder/library.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builder/library.go b/builder/library.go index 56d75c17c..01c5ebd14 100644 --- a/builder/library.go +++ b/builder/library.go @@ -153,7 +153,7 @@ func (l *Library) load(config *compileopts.Config, tmpdir string) (job *compileJ } } if strings.HasPrefix(target, "arm") || strings.HasPrefix(target, "thumb") { - args = append(args, "-fshort-enums", "-fomit-frame-pointer", "-mfloat-abi=soft", "-fno-unwind-tables") + args = append(args, "-fshort-enums", "-fomit-frame-pointer", "-mfloat-abi=soft", "-fno-unwind-tables", "-fno-asynchronous-unwind-tables") } if strings.HasPrefix(target, "riscv32-") { args = append(args, "-march=rv32imac", "-mabi=ilp32", "-fforce-enable-int128") |