mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 12:33:42 +00:00
all: use compiler-rt from the llvm-project directory
We don't need the separate submodule: compiler-rt is already included in the llvm-project repository. This should hopefully make CI slightly faster too.
This commit is contained in:
committed by
Ron Evans
parent
b7b548a8d0
commit
acdaaa17d8
@@ -166,6 +166,12 @@ func builtinFiles(target string) []string {
|
||||
|
||||
// builtinsDir returns the directory where the sources for compiler-rt are kept.
|
||||
func builtinsDir() string {
|
||||
// Path from within the development directory.
|
||||
path := filepath.Join(goenv.Get("TINYGOROOT"), "llvm-project", "compiler-rt", "lib", "builtins")
|
||||
if _, err := os.Stat(path); err == nil {
|
||||
return path
|
||||
}
|
||||
// Path from within an installation directory (bundled in the release tarball).
|
||||
return filepath.Join(goenv.Get("TINYGOROOT"), "lib", "compiler-rt", "lib", "builtins")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user