fix: compiler rt file path
This commit is contained in:
@@ -8,11 +8,6 @@ import (
|
|||||||
"github.com/goplus/llgo/internal/crosscompile/compile"
|
"github.com/goplus/llgo/internal/crosscompile/compile"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Builtins needed specifically for windows/386.
|
|
||||||
var windowsI386Builtins = []string{
|
|
||||||
"i386/chkstk.S", // also _alloca
|
|
||||||
}
|
|
||||||
|
|
||||||
func platformSpecifiedFiles(builtinsDir, target string) []string {
|
func platformSpecifiedFiles(builtinsDir, target string) []string {
|
||||||
switch {
|
switch {
|
||||||
case strings.Contains(target, "riscv32"):
|
case strings.Contains(target, "riscv32"):
|
||||||
@@ -24,32 +19,32 @@ func platformSpecifiedFiles(builtinsDir, target string) []string {
|
|||||||
}
|
}
|
||||||
case strings.Contains(target, "riscv64"):
|
case strings.Contains(target, "riscv64"):
|
||||||
return []string{
|
return []string{
|
||||||
"addtf3.c",
|
filepath.Join(builtinsDir, "addtf3.c"),
|
||||||
"comparetf2.c",
|
filepath.Join(builtinsDir, "comparetf2.c"),
|
||||||
"divtc3.c",
|
filepath.Join(builtinsDir, "divtc3.c"),
|
||||||
"divtf3.c",
|
filepath.Join(builtinsDir, "divtf3.c"),
|
||||||
"extenddftf2.c",
|
filepath.Join(builtinsDir, "extenddftf2.c"),
|
||||||
"extendhftf2.c",
|
filepath.Join(builtinsDir, "extendhftf2.c"),
|
||||||
"extendsftf2.c",
|
filepath.Join(builtinsDir, "extendsftf2.c"),
|
||||||
"fixtfdi.c",
|
filepath.Join(builtinsDir, "fixtfdi.c"),
|
||||||
"fixtfsi.c",
|
filepath.Join(builtinsDir, "fixtfsi.c"),
|
||||||
"fixtfti.c",
|
filepath.Join(builtinsDir, "fixtfti.c"),
|
||||||
"fixunstfdi.c",
|
filepath.Join(builtinsDir, "fixunstfdi.c"),
|
||||||
"fixunstfsi.c",
|
filepath.Join(builtinsDir, "fixunstfsi.c"),
|
||||||
"fixunstfti.c",
|
filepath.Join(builtinsDir, "fixunstfti.c"),
|
||||||
"floatditf.c",
|
filepath.Join(builtinsDir, "floatditf.c"),
|
||||||
"floatsitf.c",
|
filepath.Join(builtinsDir, "floatsitf.c"),
|
||||||
"floattitf.c",
|
filepath.Join(builtinsDir, "floattitf.c"),
|
||||||
"floatunditf.c",
|
filepath.Join(builtinsDir, "floatunditf.c"),
|
||||||
"floatunsitf.c",
|
filepath.Join(builtinsDir, "floatunsitf.c"),
|
||||||
"floatuntitf.c",
|
filepath.Join(builtinsDir, "floatuntitf.c"),
|
||||||
"multc3.c",
|
filepath.Join(builtinsDir, "multc3.c"),
|
||||||
"multf3.c",
|
filepath.Join(builtinsDir, "multf3.c"),
|
||||||
"powitf2.c",
|
filepath.Join(builtinsDir, "powitf2.c"),
|
||||||
"subtf3.c",
|
filepath.Join(builtinsDir, "subtf3.c"),
|
||||||
"trunctfdf2.c",
|
filepath.Join(builtinsDir, "trunctfdf2.c"),
|
||||||
"trunctfhf2.c",
|
filepath.Join(builtinsDir, "trunctfhf2.c"),
|
||||||
"trunctfsf2.c",
|
filepath.Join(builtinsDir, "trunctfsf2.c"),
|
||||||
}
|
}
|
||||||
case strings.Contains(target, "arm"):
|
case strings.Contains(target, "arm"):
|
||||||
return []string{
|
return []string{
|
||||||
@@ -81,12 +76,12 @@ func platformSpecifiedFiles(builtinsDir, target string) []string {
|
|||||||
}
|
}
|
||||||
case strings.Contains(target, "avr"):
|
case strings.Contains(target, "avr"):
|
||||||
return []string{
|
return []string{
|
||||||
filepath.Join("avr", "divmodhi4.S"),
|
filepath.Join(builtinsDir, "avr", "divmodhi4.S"),
|
||||||
filepath.Join("avr", "divmodqi4.S"),
|
filepath.Join(builtinsDir, "avr", "divmodqi4.S"),
|
||||||
filepath.Join("avr", "mulhi3.S"),
|
filepath.Join(builtinsDir, "avr", "mulhi3.S"),
|
||||||
filepath.Join("avr", "mulqi3.S"),
|
filepath.Join(builtinsDir, "avr", "mulqi3.S"),
|
||||||
filepath.Join("avr", "udivmodhi4.S"),
|
filepath.Join(builtinsDir, "avr", "udivmodhi4.S"),
|
||||||
filepath.Join("avr", "udivmodqi4.S"),
|
filepath.Join(builtinsDir, "avr", "udivmodqi4.S"),
|
||||||
}
|
}
|
||||||
|
|
||||||
case target == "xtensa":
|
case target == "xtensa":
|
||||||
|
|||||||
Reference in New Issue
Block a user