[llvm] [orc-rt] enabling CI (PR #226088)

Jared Wyles via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 26 22:54:49 PDT 2026


================
@@ -30,86 +30,6 @@
 
 llvm_config.use_default_substitutions()
 
-# %{jit} runs JIT'd code under ogre, with llvm-jitlink as the controller. Tests
-# that use it must be gated on the llvm-jitlink feature.
-ogre = os.path.join(config.orc_rt_obj_root, "tools", "ogre", "ogre")
-config.substitutions.append(("%{ogre}", ogre))
-llvm_jitlink = llvm_config.use_llvm_tool("llvm-jitlink")
-if llvm_jitlink:
-    config.available_features.add("llvm-jitlink")
-    config.substitutions.append(
-        ("%{jit}", "{} -oop-launch={}".format(llvm_jitlink, ogre))
-    )
-
-
-# %{cc} and %{cxx} compile C and C++ for the runtime's target. They default to
-# clang and clang++ from the LLVM tools directory. Pass --param orc-rt-cc=<cc>
-# or --param orc-rt-cxx=<cxx> to use a different compiler: it must accept
-# clang-style options and target the runtime's target without being told to
-# (use a wrapper script if necessary). Tests that use %{cc} or %{cxx} must be
-# gated on the orc-rt-cc or orc-rt-cxx feature respectively.
-def add_compiler(name, clang_name):
-    override = lit_config.params.get(name)
-    if override:
-        compiler = lit.util.which(override)
-        if compiler is None:
-            lit_config.fatal("{} compiler '{}' not found".format(name, override))
-        lit_config.note("using {} override: {}".format(name, compiler))
-    else:
-        compiler = llvm_config.use_llvm_tool(clang_name)
-        if compiler:
-            compiler += " --target=" + config.target_triple
-    if compiler:
-        config.available_features.add(name)
-        substitution = "%{" + name[len("orc-rt-") :] + "}"
-        config.substitutions.append((substitution, compiler))
-
-
-add_compiler("orc-rt-cc", "clang")
-add_compiler("orc-rt-cxx", "clang++")
-
-# %{mc} assembles its input into an object file for the runtime's target.
-# Unlike %{cc}, it can't be overridden, so that object format tests always
-# check the runtime against the same assembler. Tests that use it must be
-# gated on the llvm-mc feature.
-llvm_mc = llvm_config.use_llvm_tool("llvm-mc")
-if llvm_mc:
-    config.available_features.add("llvm-mc")
-    config.substitutions.append(
-        (
-            "%{mc}",
-            "{} -triple={} -filetype=obj".format(llvm_mc, config.target_triple),
-        )
-    )
-
-# Describe the runtime's target architecture and object format, so that object
-# format tests can gate on them:
-#   target-arch=<arch>             (arm64 and aarch64 are aliases)
-#   target-object-format=<coff|elf|mach-o>
-# No object format feature is added for targets not recognized below.
-ELF_OS_NAMES = ("linux", "freebsd", "netbsd", "openbsd", "fuchsia", "none", "elf")
-
----------------
jaredwy wrote:

Should be gone now. 

https://github.com/llvm/llvm-project/pull/226088


More information about the llvm-commits mailing list