summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2018-02-27 06:04:23 +0000
committerShoaib Meenai <smeenai@fb.com>2018-02-27 06:04:23 +0000
commit80396248cf4dcb9987c82fed1566180b124444dc (patch)
treede4b3107602843fbe3fe5089d57cf4e01de5f190
parent264707bae481194d1d45c6adda043733c5a9de32 (diff)
downloadbcm5719-llvm-80396248cf4dcb9987c82fed1566180b124444dc.tar.gz
bcm5719-llvm-80396248cf4dcb9987c82fed1566180b124444dc.zip
[Driver] Fix codeview-column-info on macOS
macOS home directory paths begin with /Users, and clang-cl interprets the /U portion as a macro undefine rather than a path, causing test failures on macOS. Use a -- to explicitly treat the input file as a path and fix the test. This effectively reverts r326168 and adds an alternative fix. llvm-svn: 326171
-rw-r--r--clang/test/Driver/codeview-column-info.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/Driver/codeview-column-info.c b/clang/test/Driver/codeview-column-info.c
index 6ff7449eff1..c5a7dc96d41 100644
--- a/clang/test/Driver/codeview-column-info.c
+++ b/clang/test/Driver/codeview-column-info.c
@@ -1,4 +1,3 @@
-// REQUIRES: system-windows
// Check that -dwarf-column-info does not get added to the cc1 line:
// 1) When -gcodeview is present via the clang or clang++ driver
// 2) When /Z7 is present via the cl driver.
@@ -7,7 +6,7 @@
// RUN: FileCheck < %t1 %s
// RUN: %clangxx -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t2
// RUN: FileCheck < %t2 %s
-// RUN: %clang_cl -### --target=x86_64-windows-msvc /c /Z7 %s 2> %t2
+// RUN: %clang_cl -### --target=x86_64-windows-msvc /c /Z7 -- %s 2> %t2
// RUN: FileCheck < %t2 %s
// CHECK: "-cc1"
OpenPOWER on IntegriCloud