]> granicus.if.org Git - llvm/commitdiff
[Support] Accept macosx triple as 'darwin' in Host unittest. NFC.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Fri, 3 Feb 2017 01:32:39 +0000 (01:32 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Fri, 3 Feb 2017 01:32:39 +0000 (01:32 +0000)
If LLVM was configured with an x86_64-apple-macosx host triple, this
test would fail, as the API works but the triple isn't in the whitelist.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293990 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Support/Host.cpp

index 934a60495427291241062b3f75babc519e631e75..fdeed87812870a951ea8a171c9192447f32143c7 100644 (file)
@@ -35,6 +35,7 @@ protected:
     // x86_64 Linux and Darwin.
     SupportedArchAndOSs.push_back(std::make_pair(Triple::x86_64, Triple::Linux));
     SupportedArchAndOSs.push_back(std::make_pair(Triple::x86_64, Triple::Darwin));
+    SupportedArchAndOSs.push_back(std::make_pair(Triple::x86_64, Triple::MacOSX));
   }
 };