Add flag that allows ignoring compiler flags specified in an interface file when running a '-compile-module-from-interface' frontend action.

This commit is contained in:
Artem Chikin
2022-08-02 10:02:53 -07:00
parent 78f5e0b0fd
commit 7bdec998b1
12 changed files with 92 additions and 14 deletions

View File

@@ -86,7 +86,9 @@ private:
SmallVectorImpl<SerializationOptions::FileDependency> &Deps,
bool IsHashBased);
bool buildSwiftModuleInternal(StringRef OutPath, bool ShouldSerializeDeps,
bool buildSwiftModuleInternal(StringRef OutPath,
bool ShouldSerializeDeps,
bool IgnoreInterfaceProvidedOptions,
std::unique_ptr<llvm::MemoryBuffer> *ModuleBuffer,
ArrayRef<std::string> CandidateModules);
public:
@@ -116,7 +118,9 @@ public:
extraDependencies.push_back(path);
}
bool buildSwiftModule(StringRef OutPath, bool ShouldSerializeDeps,
bool buildSwiftModule(StringRef OutPath,
bool ShouldSerializeDeps,
bool ignoreInterfaceProvidedOptions,
std::unique_ptr<llvm::MemoryBuffer> *ModuleBuffer,
llvm::function_ref<void()> RemarkRebuild = nullptr,
ArrayRef<std::string> CandidateModules = {});