[llvm] r293990 - [Support] Accept macosx triple as 'darwin' in Host unittest. NFC.

Ahmed Bougacha via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 2 17:32:40 PST 2017

Author: ab
Date: Thu Feb  2 19:32:39 2017
New Revision: 293990

URL: http://llvm.org/viewvc/llvm-project?rev=293990&view=rev
[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.


Modified: llvm/trunk/unittests/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/Host.cpp?rev=293990&r1=293989&r2=293990&view=diff
--- llvm/trunk/unittests/Support/Host.cpp (original)
+++ llvm/trunk/unittests/Support/Host.cpp Thu Feb  2 19:32:39 2017
@@ -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));

More information about the llvm-commits mailing list