================
@@ -89,7 +89,26 @@
config.substitutions.append(("%PATH%", config.environment["PATH"]))
+sed_cmd = (
+ "/opt/freeware/bin/sed" if "system-aix" in config.available_features else
"sed"
+)
+# Filtering command for testing SARIF output against reference output.
+config.substitutions.append(
+ (
+ "%normalize_sarif",
+ f"{sed_cmd} -r '%s;%s;%s;%s'"
+ % (
+ # Replace version strings that are likely to change.
+ r's/"version": "2.1.0"/"version": "[SARIF version]"/',
----------------
steakhal wrote:
I know you just moved this hunk, but I'm still surprised that we have
hard-coded version numbers here in this replace pattern.
Do you know if this pattern part is still relevant, or just dead code?
https://github.com/llvm/llvm-project/pull/168153
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits