[clang] Updating tests for usage of CLANG_RESOURCE_DIR (clang/test/Driver/driverkit-path.c) (1/4) (PR #197154)

Carlo Cabrera via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 5 09:47:21 PDT 2026


================
@@ -412,6 +412,11 @@ def calculate_arch_features(arch_string):
 if config.enable_threads:
     config.available_features.add("thread_support")
 
+# Add clang resource directory as a substitution
----------------
carlocab wrote:

The difficulty might be is that, IIRC, `CLANG_RESOURCE_DIR` can be a path relative to the `clang` binary. In that case checking `clang -print-resource-dir` might be simplest, or we can reconstruct it from where we expect `clang` to be.

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


More information about the cfe-commits mailing list