]> granicus.if.org Git - clang/commitdiff
[Driver] Fix codeview-column-info on macOS
authorShoaib Meenai <smeenai@fb.com>
Tue, 27 Feb 2018 06:04:23 +0000 (06:04 +0000)
committerShoaib Meenai <smeenai@fb.com>
Tue, 27 Feb 2018 06:04:23 +0000 (06:04 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326171 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/codeview-column-info.c

index 6ff7449eff10cf4edeed2a7a38b35d8477480a9d..c5a7dc96d4118b4cc87f66ab5edd846aa39e79eb 100644 (file)
@@ -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"