mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
libSwiftScanner: add an API to invoke compiler in process
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "swift/Basic/LLVMInitialize.h"
|
||||
#include "swift/DriverTool/DriverTool.h"
|
||||
#include "swift/DependencyScan/DependencyScanImpl.h"
|
||||
#include "swift/DependencyScan/DependencyScanningTool.h"
|
||||
#include "swift/DependencyScan/StringUtils.h"
|
||||
@@ -510,3 +511,7 @@ swiftscan_compiler_supported_features_query() {
|
||||
// TODO: We are yet to figure out how "Features" will be organized.
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int invoke_swift_compiler(int argc, const char **argv) {
|
||||
return swift::mainEntry(argc, argv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user