Revert "all: use compiler-rt from the llvm-project directory"

This reverts commit acdaaa17d8.
See https://github.com/tinygo-org/tinygo/issues/734 for details.
This commit is contained in:
Ayke van Laethem
2019-11-25 11:06:39 +01:00
committed by Ron Evans
parent 10e1420237
commit 4be80e0372
4 changed files with 14 additions and 15 deletions
-6
View File
@@ -166,12 +166,6 @@ 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")
}