[llvm] [utils] Add an alias name --cc for --clang (PR #69442)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 03:20:38 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-testing-tools
Author: Shao-Ce SUN (sunshaoce)
<details>
<summary>Changes</summary>
When using `update_cc_test_checks.py`, it is easy to mistakenly use the `--cc` option instead of `--clang` based on the name. It wouldn't have any negative impact if it's added as well, so I think it can be more convenient.
---
Full diff: https://github.com/llvm/llvm-project/pull/69442.diff
1 Files Affected:
- (modified) llvm/utils/update_cc_test_checks.py (+1-1)
``````````diff
diff --git a/llvm/utils/update_cc_test_checks.py b/llvm/utils/update_cc_test_checks.py
index e96d4167e6567f4..e1a767eb5603520 100755
--- a/llvm/utils/update_cc_test_checks.py
+++ b/llvm/utils/update_cc_test_checks.py
@@ -173,7 +173,7 @@ def config():
)
parser.add_argument("--llvm-bin", help="llvm $prefix/bin path")
parser.add_argument(
- "--clang", help='"clang" executable, defaults to $llvm_bin/clang'
+ "--cc", "--clang", help='"clang" executable, defaults to $llvm_bin/clang'
)
parser.add_argument(
"--clang-args",
``````````
</details>
https://github.com/llvm/llvm-project/pull/69442
More information about the llvm-commits
mailing list