Also disable asynchronous unwind tables

These seem to be enabled in LLVM 14, and cause undefined symbol errors.
Этот коммит содержится в:
Elliott Sales de Andrade 2022-04-10 23:54:34 -04:00 коммит произвёл Ayke
родитель 7f507a7026
коммит 4858b27120
7 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -153,7 +153,7 @@ func (l *Library) load(config *compileopts.Config, tmpdir string) (job *compileJ
} }
} }
if strings.HasPrefix(target, "arm") || strings.HasPrefix(target, "thumb") { 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-") { if strings.HasPrefix(target, "riscv32-") {
args = append(args, "-march=rv32imac", "-mabi=ilp32", "-fforce-enable-int128") args = append(args, "-march=rv32imac", "-mabi=ilp32", "-fforce-enable-int128")

Просмотреть файл

@ -259,7 +259,7 @@ func defaultTarget(goos, goarch, triple string) (*TargetSpec, error) {
spec.Features = "+cx8,+fxsr,+mmx,+sse,+sse2,+x87" spec.Features = "+cx8,+fxsr,+mmx,+sse,+sse2,+x87"
case "arm": case "arm":
spec.CPU = "generic" 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] { switch strings.Split(triple, "-")[0] {
case "armv5": 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" 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"

Просмотреть файл

@ -14,7 +14,7 @@
"-fshort-enums", "-fshort-enums",
"-fomit-frame-pointer", "-fomit-frame-pointer",
"-mfloat-abi=soft", "-mfloat-abi=soft",
"-fno-exceptions", "-fno-unwind-tables", "-fno-exceptions", "-fno-unwind-tables", "-fno-asynchronous-unwind-tables",
"-ffunction-sections", "-fdata-sections" "-ffunction-sections", "-fdata-sections"
], ],
"ldflags": [ "ldflags": [

Просмотреть файл

@ -12,7 +12,7 @@
"-Werror", "-Werror",
"-fshort-enums", "-fshort-enums",
"-fomit-frame-pointer", "-fomit-frame-pointer",
"-fno-exceptions", "-fno-unwind-tables", "-fno-exceptions", "-fno-unwind-tables", "-fno-asynchronous-unwind-tables",
"-ffunction-sections", "-fdata-sections" "-ffunction-sections", "-fdata-sections"
], ],
"ldflags": [ "ldflags": [

Просмотреть файл

@ -18,7 +18,7 @@
"-Werror", "-Werror",
"-fshort-enums", "-fshort-enums",
"-fomit-frame-pointer", "-fomit-frame-pointer",
"-fno-exceptions", "-fno-unwind-tables", "-fno-exceptions", "-fno-unwind-tables", "-fno-asynchronous-unwind-tables",
"-ffunction-sections", "-fdata-sections" "-ffunction-sections", "-fdata-sections"
], ],
"ldflags": [ "ldflags": [

Просмотреть файл

@ -9,7 +9,7 @@
"cflags": [ "cflags": [
"-Werror", "-Werror",
"-mno-relax", "-mno-relax",
"-fno-exceptions", "-fno-unwind-tables", "-fno-exceptions", "-fno-unwind-tables", "-fno-asynchronous-unwind-tables",
"-ffunction-sections", "-fdata-sections" "-ffunction-sections", "-fdata-sections"
], ],
"ldflags": [ "ldflags": [

Просмотреть файл

@ -9,7 +9,7 @@
"-Werror", "-Werror",
"-fshort-enums", "-fshort-enums",
"-Wno-macro-redefined", "-Wno-macro-redefined",
"-fno-exceptions", "-fno-unwind-tables", "-fno-exceptions", "-fno-unwind-tables", "-fno-asynchronous-unwind-tables",
"-ffunction-sections", "-fdata-sections" "-ffunction-sections", "-fdata-sections"
], ],
"ldflags": [ "ldflags": [