[CAS] Improve swift cas options

Using the same CASOption from clang to communicate CAS configurations so
it is easier to exchange CAS configuration between them.
This commit is contained in:
Steven Wu
2023-06-12 15:33:35 -07:00
parent b1b16981fe
commit 2b7d38dc16
15 changed files with 289 additions and 39 deletions

View File

@@ -23,6 +23,7 @@
#include "swift/Basic/LLVM.h"
#include "swift/Basic/Version.h"
#include "swift/Config.h"
#include "clang/CAS/CASOptions.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/SmallString.h"
@@ -820,7 +821,7 @@ namespace swift {
std::string Optimization;
/// clang CASOptions.
std::string CASPath;
llvm::Optional<clang::CASOptions> CASOpts;
/// Cache key for imported bridging header.
std::string BridgingHeaderPCHCacheKey;