[llvm-branch-commits] [compiler-rt] Allow running tests without installing first (PR #83088)

Dan Liew via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Feb 27 00:43:57 PST 2024


================
@@ -172,6 +172,20 @@ def push_dynamic_library_lookup_path(config, new_path):
 # doesn't match config.compiler_rt_libdir then it means we might be testing the
 # compiler's own runtime libraries rather than the ones we just built.
 # Warn about about this and handle appropriately.
+if config.test_standalone_build_libs:
+    if config.compiler_id == "Clang":
+        # Ensure that we use the just-built libraries when linking by overriding
+        # the Clang resource directory. However, this also means that we can no
+        # longer find the builtin headers from that path, so we explicitly add
+        # the builtin headers as an include path.
----------------
delcypher wrote:

Sorry. It's been a while since I looked at this code. If you use a different resource directory why can't the compiler use the header files in that resource directory?

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


More information about the llvm-branch-commits mailing list