[clang] [HeaderSearch] Make a test independent of the local environment. (PR #100011)
Volodymyr Sapsai via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 22 16:48:48 PDT 2024
https://github.com/vsapsai created https://github.com/llvm/llvm-project/pull/100011
Don't ask the driver to inspect the local environment but use `cc1` directly.
>From 190e0a04afb71873c5d398ff08057684ca553d67 Mon Sep 17 00:00:00 2001
From: Volodymyr Sapsai <vsapsai at apple.com>
Date: Mon, 22 Jul 2024 16:46:27 -0700
Subject: [PATCH] [HeaderSearch] Make a test independent of the local
environment.
Don't ask the driver to inspect the local environment but use `cc1` directly.
---
clang/test/Modules/subdirectory-module-maps-working-dir.m | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/clang/test/Modules/subdirectory-module-maps-working-dir.m b/clang/test/Modules/subdirectory-module-maps-working-dir.m
index 4fb19ff05ef38..43488e8d13601 100644
--- a/clang/test/Modules/subdirectory-module-maps-working-dir.m
+++ b/clang/test/Modules/subdirectory-module-maps-working-dir.m
@@ -1,8 +1,8 @@
// RUN: rm -rf %t
-// RUN: %clang -fsyntax-only -fmodules -fmodules-cache-path=%t \
+// RUN: %clang_cc1 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
// RUN: -working-directory %S/Inputs \
// RUN: -I subdirectory-module-maps-working-dir \
-// RUN: %s -Werror=implicit-function-declaration -Xclang -verify
+// RUN: %s -Werror=implicit-function-declaration -verify
@import ModuleInSubdir;
More information about the cfe-commits
mailing list