Skip to content

Commit 8eacea8

Browse files
committed
Appease MSVC builds by #ifdef wrapping runAndGetCommandOutput tests. NFCI.
llvm-svn: 356042
1 parent 66943c3 commit 8eacea8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/unittests/Support/Host.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ CPU part : 0x0a1
249249
"tsv110");
250250
}
251251

252+
#if defined(__APPLE__) || defined(_AIX)
252253
static bool runAndGetCommandOutput(
253254
const char *ExePath, ArrayRef<llvm::StringRef> argv,
254255
std::unique_ptr<char[]> &Buffer, off_t &Size) {
@@ -288,6 +289,7 @@ TEST_F(HostTest, DummyRunAndGetCommandOutputUse) {
288289
// disabled.
289290
(void) runAndGetCommandOutput;
290291
}
292+
#endif
291293

292294
#if defined(__APPLE__)
293295
TEST_F(HostTest, getMacOSHostVersion) {

0 commit comments

Comments
 (0)