[llvm] r356042 - Appease MSVC builds by #ifdef wrapping runAndGetCommandOutput tests. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 13 04:51:13 PDT 2019
Author: rksimon
Date: Wed Mar 13 04:51:13 2019
New Revision: 356042
URL: http://llvm.org/viewvc/llvm-project?rev=356042&view=rev
Log:
Appease MSVC builds by #ifdef wrapping runAndGetCommandOutput tests. NFCI.
Modified:
llvm/trunk/unittests/Support/Host.cpp
Modified: llvm/trunk/unittests/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/Host.cpp?rev=356042&r1=356041&r2=356042&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/Host.cpp (original)
+++ llvm/trunk/unittests/Support/Host.cpp Wed Mar 13 04:51:13 2019
@@ -249,6 +249,7 @@ CPU part : 0x0a1
"tsv110");
}
+#if defined(__APPLE__) || defined(_AIX)
static bool runAndGetCommandOutput(
const char *ExePath, ArrayRef<llvm::StringRef> argv,
std::unique_ptr<char[]> &Buffer, off_t &Size) {
@@ -288,6 +289,7 @@ TEST_F(HostTest, DummyRunAndGetCommandOu
// disabled.
(void) runAndGetCommandOutput;
}
+#endif
#if defined(__APPLE__)
TEST_F(HostTest, getMacOSHostVersion) {
More information about the llvm-commits
mailing list