mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Remove llvm-gcc and various compiler handling from llvm. It's not needed
here anymore and has been migrated to the test-suite project. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140216 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
load_lib llvm.exp
|
||||
|
||||
if { [llvm_supports_target X86] && [llvm_gcc_supports c] } {
|
||||
if { [llvm_supports_target X86] } {
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,s}]]
|
||||
}
|
||||
|
@@ -249,34 +249,6 @@ proc RunLLVMTests { test_source_files } {
|
||||
}
|
||||
}
|
||||
|
||||
# This procedure provides an interface to check the LLVMGCC_LANGS makefile
|
||||
# variable to see if llvm-gcc supports compilation of a particular language.
|
||||
proc llvm_gcc_supports { lang } {
|
||||
global llvmgcc llvmgcc_langs
|
||||
# validate the language choices and determine the name of the compiler
|
||||
# component responsible for determining if the compiler has been built.
|
||||
switch "$lang" {
|
||||
ada { set file gnat1 }
|
||||
c { set file cc1 }
|
||||
c++ { set file cc1plus }
|
||||
objc { set file cc1obj }
|
||||
obj-c++ { set file cc1objplus }
|
||||
fortran { set file f951 }
|
||||
default { return 0 }
|
||||
}
|
||||
foreach supported_lang [split "$llvmgcc_langs" ,] {
|
||||
if { "$lang" == "$supported_lang" } {
|
||||
# FIXME: Knowing it is configured is not enough. We should do two more
|
||||
# checks here. First, we need to run llvm-gcc -print-prog-name=$file to
|
||||
# get the path to the compiler. If we don't get a path, the language isn't
|
||||
# properly configured or built. If we do get a path, we should check to
|
||||
# make sure that it is executable and perhaps even try executing it.
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
# This procedure provides an interface to check the TARGETS_TO_BUILD makefile
|
||||
# variable to see if a particular target has been configured to build. This
|
||||
# helps avoid running tests for targets that aren't available.
|
||||
|
@@ -235,10 +235,6 @@ def llvm_supports_target(name):
|
||||
def llvm_supports_darwin_and_target(name):
|
||||
return 'darwin' in config.target_triple and llvm_supports_target(name)
|
||||
|
||||
langs = set([s.strip() for s in site_exp['llvmgcc_langs'].split(',')])
|
||||
def llvm_gcc_supports(name):
|
||||
return name.strip() in langs
|
||||
|
||||
bindings = set([s.strip() for s in site_exp['llvm_bindings'].split(',')])
|
||||
def llvm_supports_binding(name):
|
||||
return name.strip() in bindings
|
||||
|
Reference in New Issue
Block a user