[clang] [HeaderSearch] Make a test independent of the local environment. (PR #100011)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 22 16:49:18 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Volodymyr Sapsai (vsapsai)
<details>
<summary>Changes</summary>
Don't ask the driver to inspect the local environment but use `cc1` directly.
---
Full diff: https://github.com/llvm/llvm-project/pull/100011.diff
1 Files Affected:
- (modified) clang/test/Modules/subdirectory-module-maps-working-dir.m (+2-2)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/100011
More information about the cfe-commits
mailing list