[llvm] f00575e - [UpdateTestChecks] Fix %update_mc_test_checks substitution

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 30 11:02:35 PST 2025


Author: Alexander Richardson
Date: 2025-12-30T11:02:31-08:00
New Revision: f00575eacdcad38f1d5b4880954856fe62222b76

URL: https://github.com/llvm/llvm-project/commit/f00575eacdcad38f1d5b4880954856fe62222b76
DIFF: https://github.com/llvm/llvm-project/commit/f00575eacdcad38f1d5b4880954856fe62222b76.diff

LOG: [UpdateTestChecks] Fix %update_mc_test_checks substitution

We need to explicitly pass --llvm-mc-binary to avoid picking up llvm-mc
from somewhere else in $PATH. Noticed this because test lines were being
generated that didn't include my latest changes to update_mc_test_checks.py

Pull Request: https://github.com/llvm/llvm-project/pull/172230

Added: 
    

Modified: 
    llvm/test/tools/UpdateTestChecks/lit.local.cfg

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/UpdateTestChecks/lit.local.cfg b/llvm/test/tools/UpdateTestChecks/lit.local.cfg
index 3c7aeb7fcd35a..7b347e4f319e8 100644
--- a/llvm/test/tools/UpdateTestChecks/lit.local.cfg
+++ b/llvm/test/tools/UpdateTestChecks/lit.local.cfg
@@ -56,4 +56,5 @@ if os.path.isfile(split_file_path):
 
 llvm_mc_path = os.path.join(config.llvm_tools_dir, "llvm-mc")
 if os.path.isfile(llvm_mc_path):
-    add_update_script_substitution("%update_mc_test_checks")
+    llvm_mc_arg = "--llvm-mc-binary " + shell_quote(llvm_mc_path)
+    add_update_script_substitution("%update_mc_test_checks", extra_args=llvm_mc_arg)


        


More information about the llvm-commits mailing list