Skip to content

Commit

Permalink
[ClangScanDeps][test] Add -fmodules-cache-path=DIR/cache to make diag…
Browse files Browse the repository at this point in the history
…nostics.c hermetic

Otherwise it may access sys::path::cache_directory/clang/ModuleCache which may not be writable.
  • Loading branch information
MaskRay committed Sep 13, 2021
1 parent dc08cfa commit 0867c01
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1,7 +1,7 @@
[
{
"directory": "DIR",
"command": "clang -c DIR/tu.c -fmodules -target i386-apple-ios14.0-simulator -Wno-error=invalid-ios-deployment-target -o DIR/tu.o",
"command": "clang -c DIR/tu.c -fmodules -target i386-apple-ios14.0-simulator -fmodules-cache-path=DIR/cache -Wno-error=invalid-ios-deployment-target -o DIR/tu.o",
"file": "DIR/tu.c"
}
]

0 comments on commit 0867c01

Please sign in to comment.