mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
MCJIT: ensure that cygwin is identified properly
Cygwin is now a proper environment rather than an OS. This updates the MCJIT tests to avoid execution on Cygwin. This fixes native cygwin tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205266 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6bbb01bbf8
commit
442c61dd9a
@ -135,6 +135,8 @@ protected:
|
||||
// The operating systems below are known to be sufficiently incompatible
|
||||
// that they will fail the MCJIT C API tests.
|
||||
UnsupportedOSs.push_back(Triple::Cygwin);
|
||||
|
||||
UnsupportedEnvironments.push_back(Triple::Cygnus);
|
||||
}
|
||||
|
||||
virtual void SetUp() {
|
||||
|
@ -71,10 +71,15 @@ protected:
|
||||
/// Returns true if the host OS is known to support MCJIT
|
||||
bool OSSupportsMCJIT() {
|
||||
Triple Host(HostTriple);
|
||||
|
||||
if (std::find(UnsupportedEnvironments.begin(), UnsupportedEnvironments.end(),
|
||||
Host.getEnvironment()) != UnsupportedEnvironments.end())
|
||||
return false;
|
||||
|
||||
if (std::find(UnsupportedOSs.begin(), UnsupportedOSs.end(), Host.getOS())
|
||||
== UnsupportedOSs.end()) {
|
||||
== UnsupportedOSs.end())
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -83,6 +88,7 @@ protected:
|
||||
SmallVector<Triple::ArchType, 1> HasSubArchs;
|
||||
SmallVector<std::string, 2> SupportedSubArchs; // We need to own the memory
|
||||
SmallVector<Triple::OSType, 4> UnsupportedOSs;
|
||||
SmallVector<Triple::EnvironmentType, 1> UnsupportedEnvironments;
|
||||
};
|
||||
|
||||
} // namespace llvm
|
||||
|
@ -304,6 +304,8 @@ protected:
|
||||
// should be kept in sync.
|
||||
UnsupportedOSs.push_back(Triple::Cygwin);
|
||||
UnsupportedOSs.push_back(Triple::Darwin);
|
||||
|
||||
UnsupportedEnvironments.push_back(Triple::Cygnus);
|
||||
}
|
||||
|
||||
void createJIT(Module *M) {
|
||||
|
Loading…
Reference in New Issue
Block a user