[llvm-jitlink] Don't try to guess the ORC runtime path.

ORC-runtime regression tests will now explicitly specify the runtime path.

GitOrigin-RevId: 13c8ec44e6385127f4aaba333dcad705dd5888c6
diff --git a/test/orc/lit.cfg.py b/test/orc/lit.cfg.py
index 4e39523..d499f26 100644
--- a/test/orc/lit.cfg.py
+++ b/test/orc/lit.cfg.py
@@ -13,6 +13,7 @@
 
 # Assume that llvm-jitlink is in the config.llvm_tools_dir.
 llvm_jitlink = os.path.join(config.llvm_tools_dir, 'llvm-jitlink')
+orc_rt_path = '%s/libclang_rt.orc_osx.a' % config.compiler_rt_libdir
 
 config.substitutions.append(
     ('%clang ', build_invocation([config.target_cflags])))
@@ -20,11 +21,7 @@
     ('%clangxx ',
      build_invocation(config.cxx_mode_flags + [config.target_cflags])))
 config.substitutions.append(
-    ('%llvm_jitlink', llvm_jitlink))
-config.substitutions.append(
-    ('%orc_rt',
-        ('-L%s -lclang_rt.orc%s')
-        % (config.compiler_rt_libdir, config.target_suffix)))
+    ('%llvm_jitlink', (llvm_jitlink + ' -orc-runtime=' + orc_rt_path)))
 
 # Default test suffixes.
 config.suffixes = ['.c', '.cpp', '.S']