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 /compileopts | |
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 'compileopts')
-rw-r--r-- | compileopts/target.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compileopts/target.go b/compileopts/target.go index 06ad66edc..cf16dff40 100644 --- a/compileopts/target.go +++ b/compileopts/target.go @@ -259,7 +259,7 @@ func defaultTarget(goos, goarch, triple string) (*TargetSpec, error) { spec.Features = "+cx8,+fxsr,+mmx,+sse,+sse2,+x87" case "arm": spec.CPU = "generic" - spec.CFlags = append(spec.CFlags, "-fno-unwind-tables") + spec.CFlags = append(spec.CFlags, "-fno-unwind-tables", "-fno-asynchronous-unwind-tables") switch strings.Split(triple, "-")[0] { case "armv5": spec.Features = "+armv5t,+strict-align,-aes,-bf16,-d32,-dotprod,-fp-armv8,-fp-armv8d16,-fp-armv8d16sp,-fp-armv8sp,-fp16,-fp16fml,-fp64,-fpregs,-fullfp16,-mve.fp,-neon,-sha2,-thumb-mode,-vfp2,-vfp2sp,-vfp3,-vfp3d16,-vfp3d16sp,-vfp3sp,-vfp4,-vfp4d16,-vfp4d16sp,-vfp4sp" |