[llvm] [orc-rt] Rename os-version substitution. (PR #226863)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 27 18:28:16 PDT 2026
https://github.com/lhames created https://github.com/llvm/llvm-project/pull/226863
This substitution is available and being tested on all platforms. It's currently only populated on Darwin, but may be useful on other platforms, so rename it to reflect its role.
>From fc68f30880bc384fa792768655baf087acc58f81 Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at gmail.com>
Date: Mon, 28 Sep 2026 11:23:59 +1000
Subject: [PATCH] [orc-rt] Rename os-version substitution.
This substitution is available and being tested on all platforms. It's
currently only populated on Darwin, but may be useful on other
platforms, so rename it to reflect its role.
---
.../jit-free-foundations/check-rt-process-info.test | 2 +-
orc-rt/test/regression/lit.cfg.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/orc-rt/test/regression/jit-free-foundations/check-rt-process-info.test b/orc-rt/test/regression/jit-free-foundations/check-rt-process-info.test
index 6c22c83be0299..8b69df24b0339 100644
--- a/orc-rt/test/regression/jit-free-foundations/check-rt-process-info.test
+++ b/orc-rt/test/regression/jit-free-foundations/check-rt-process-info.test
@@ -1,7 +1,7 @@
# RUN: orc-rt-process-info-check --print-triple --print-page-size \
# RUN: --print-cpu-features \
# RUN: | FileCheck %s -DARCH=%host-arch -DOS=%host-os \
-# RUN: -DVERSION=%macos-product-version -DPAGESIZE=%host-page-size
+# RUN: -DVERSION=%host-os-version -DPAGESIZE=%host-page-size
# CHECK: triple: [[ARCH]]-{{.*}}-[[OS]][[VERSION]]
# CHECK-NEXT: page-size: [[PAGESIZE]]
diff --git a/orc-rt/test/regression/lit.cfg.py b/orc-rt/test/regression/lit.cfg.py
index f06dfdb770829..de48c3d0091f6 100644
--- a/orc-rt/test/regression/lit.cfg.py
+++ b/orc-rt/test/regression/lit.cfg.py
@@ -169,9 +169,9 @@ def add_logging_features():
config.environment.pop(var, None)
if platform.system() == "Darwin":
- config.substitutions.append(("%macos-product-version", platform.mac_ver()[0]))
+ config.substitutions.append(("%host-os-version", platform.mac_ver()[0]))
else:
- config.substitutions.append(("%macos-product-version", ""))
+ config.substitutions.append(("%host-os-version", ""))
config.substitutions.append(("%target_triple", config.target_triple))
More information about the llvm-commits
mailing list