diff options
author | Pushpinder Singh <Pushpinder.Singh@amd.com> | 2020-05-29 01:22:48 -0400 |
---|---|---|
committer | Sameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com> | 2020-05-29 20:04:22 +0530 |
commit | 16fef6d0b46f0494c502f8fe416fe841f7b000f6 (patch) | |
tree | 89de9c61e31c2e3c4133ff2f291ced68a9b83583 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | |
parent | 0609704760d0a94cccdbd243d0d750d74ee6c459 (diff) | |
download | llvm-16fef6d0b46f0494c502f8fe416fe841f7b000f6.zip llvm-16fef6d0b46f0494c502f8fe416fe841f7b000f6.tar.gz llvm-16fef6d0b46f0494c502f8fe416fe841f7b000f6.tar.bz2 |
Fix build failure when source is read only
cmake configure fails when it tries to setup target for llvm_vcsrevision_h
This happens only when source is checked out using repo in a read
only filesystem, because cmake tries to create `.git/logs/HEAD` file.
This patch:
1. Recovers from failure gracefully.
2. Ensures that VCSRevision.h is successfully created and updated
in above scenarios.
Differential Revision: https://reviews.llvm.org/D79400
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions