[clang] Update remaining tests for usage of CLANG_RESOURCE_DIR (PR #202475)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 10 07:19:47 PDT 2026
================
@@ -4,14 +4,14 @@
// Test standard include paths
// -----------------------------------------------------------------------------
// RUN: %clang -### --target=hexagon-none-elf --cstdlib=picolibc \
-// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/Tools/bin %s 2>&1 | FileCheck -check-prefix=CHECK-C-INCLUDES %s
-// CHECK-C-INCLUDES: "-cc1" {{.*}} "-internal-isystem" "{{.*}}{{/|\\\\}}lib{{/|\\\\}}clang{{/|\\\\}}{{[0-9]+}}{{/|\\\\}}include"
+// RUN: -ccc-install-dir %S/Inputs/hexagon_tree/Tools/bin %s 2>&1 | FileCheck -check-prefix=CHECK-C-INCLUDES -DRESOURCE_DIR=%clang-resource-dir %s
+// CHECK-C-INCLUDES: "-cc1" {{.*}} "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\}}include"
----------------
quic-k wrote:
based on the CI fail, you need four backslashes here : {{/|\\\\}} for the test to pass
for some reason hexagon clang driver is adding double back slashes for windows, this looks like a bug (not to be fixed in this PR)
https://github.com/llvm/llvm-project/pull/202475
More information about the cfe-commits
mailing list