projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66943c3
)
Appease MSVC builds by #ifdef wrapping runAndGetCommandOutput tests. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 13 Mar 2019 11:51:13 +0000
(11:51 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 13 Mar 2019 11:51:13 +0000
(11:51 +0000)
llvm-svn: 356042
llvm/unittests/Support/Host.cpp
patch
|
blob
|
history
diff --git
a/llvm/unittests/Support/Host.cpp
b/llvm/unittests/Support/Host.cpp
index
89080f3
..
ec9dd95
100644
(file)
--- a/
llvm/unittests/Support/Host.cpp
+++ b/
llvm/unittests/Support/Host.cpp
@@
-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, DummyRunAndGetCommandOutputUse) {
// disabled.
(void) runAndGetCommandOutput;
}
+#endif
#if defined(__APPLE__)
TEST_F(HostTest, getMacOSHostVersion) {