-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix clang-tidy plugin compilation on windows and document the process.
- Loading branch information
Showing
9 changed files
with
276 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
index cd803f859..638313405 100644 | ||
--- a/llvm/utils/lit/lit/TestRunner.py | ||
+++ b/llvm/utils/lit/lit/TestRunner.py | ||
@@ -1085,7 +1085,7 @@ def executeScript(test, litConfig, tmpBase, commands, cwd): | ||
if match: | ||
command = match.group(2) | ||
commands[i] = match.expand( | ||
- "echo '\\1' > nul && " if command else "echo '\\1' > nul" | ||
+ "echo '\\1' > nul && \\2" if command else "echo '\\1' > nul" | ||
) | ||
if litConfig.echo_all_commands: | ||
f.write("@echo on\n") | ||
diff --git a/llvm/utils/lit/lit/TestingConfig.py b/llvm/utils/lit/lit/TestingConfig.py | ||
index 76fd66502..129a5df28 100644 | ||
--- a/llvm/utils/lit/lit/TestingConfig.py | ||
+++ b/llvm/utils/lit/lit/TestingConfig.py | ||
@@ -71,6 +71,7 @@ class TestingConfig(object): | ||
"INCLUDE", | ||
"LIB", | ||
"PATHEXT", | ||
+ "SystemDrive", | ||
"USERPROFILE", | ||
] | ||
environment["PYTHONBUFFERED"] = "1" |
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