From: Shoaib Meenai Date: Tue, 27 Feb 2018 06:04:23 +0000 (+0000) Subject: [Driver] Fix codeview-column-info on macOS X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e136b185eb43c64d5de4d17cf6128ace6866d7e;p=clang [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326171 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/codeview-column-info.c b/test/Driver/codeview-column-info.c index 6ff7449eff..c5a7dc96d4 100644 --- a/test/Driver/codeview-column-info.c +++ b/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"