From: Ahmed Bougacha Date: Fri, 3 Feb 2017 01:32:39 +0000 (+0000) Subject: [Support] Accept macosx triple as 'darwin' in Host unittest. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9351d2538cfc1ab64d491b7c15fe757d5a1e3217;p=llvm [Support] Accept macosx triple as 'darwin' in Host unittest. NFC. 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 --- diff --git a/unittests/Support/Host.cpp b/unittests/Support/Host.cpp index 934a6049542..fdeed878128 100644 --- a/unittests/Support/Host.cpp +++ b/unittests/Support/Host.cpp @@ -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)); } };