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:
Ayke van Laethem
2019-11-13 14:55:22 +01:00
committed by Ron Evans
parent b7b548a8d0
commit acdaaa17d8
4 changed files with 15 additions and 14 deletions
+6
View File
@@ -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")
}