-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When this flag is enabled, clang-cl falls back to cl.exe if it cannot compile the code itself for some reason. The idea is to use this to help build projects that almost compile with clang-cl, except for some files that can then be built with the fallback mechanism. Differential Revision: http://llvm-reviews.chandlerc.com/D1711 llvm-svn: 191034
- Loading branch information
Showing
7 changed files
with
193 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Don't attempt slash switches on msys bash. | ||
// REQUIRES: shell-preserves-root | ||
|
||
// Note: %s must be preceded by --, otherwise it may be interpreted as a | ||
// command-line option, e.g. on Mac where %s is commonly under /Users. | ||
|
||
// RUN: %clang_cl /fallback /Dfoo=bar /Ubaz /Ifoo /O0 /Ox /GR /GR- /LD /LDd \ | ||
// RUN: /MD /MDd /MTd /MT -### -- %s 2>&1 | FileCheck %s | ||
// CHECK: || | ||
// CHECK: cl.exe | ||
// CHECK: "/c" | ||
// CHECK: "/W0" | ||
// CHECK: "-D" "foo=bar" | ||
// CHECK: "-U" "baz" | ||
// CHECK: "-I" "foo" | ||
// CHECK: "-O3" | ||
// CHECK: "/GR-" | ||
// CHECK: "/LD" | ||
// CHECK: "/LDd" | ||
// CHECK: "/MT" | ||
// CHECK: "/Tc" "{{.*cl-fallback.c}}" | ||
// CHECK: "/Fo{{.*cl-fallback.*.obj}}" |