@@ -246,6 +246,15 @@ struct SILOptOptions {
246
246
DisableObjCInterop = llvm::cl::opt<bool >(" disable-objc-interop" ,
247
247
llvm::cl::desc (" Disable Objective-C interoperability." ));
248
248
249
+ llvm::cl::opt<bool >
250
+ DisableImplicitModules = llvm::cl::opt<bool >(" disable-implicit-swift-modules" ,
251
+ llvm::cl::desc (" Disable implicit swift modules." ));
252
+
253
+ llvm::cl::opt<std::string>
254
+ ExplicitSwiftModuleMapPath = llvm::cl::opt<std::string>(
255
+ " explicit-swift-module-map-file" ,
256
+ llvm::cl::desc (" Explict swift module map file path" ));
257
+
249
258
llvm::cl::list<std::string>
250
259
ExperimentalFeatures = llvm::cl::list<std::string>(" enable-experimental-feature" ,
251
260
llvm::cl::desc (" Enable the given experimental feature." ));
@@ -679,6 +688,12 @@ int sil_opt_main(ArrayRef<const char *> argv, void *MainAddr) {
679
688
= options.EnableLibraryEvolution ;
680
689
Invocation.getFrontendOptions ().StrictImplicitModuleContext
681
690
= options.StrictImplicitModuleContext ;
691
+
692
+ Invocation.getFrontendOptions ().DisableImplicitModules =
693
+ options.DisableImplicitModules ;
694
+ Invocation.getSearchPathOptions ().ExplicitSwiftModuleMapPath =
695
+ options.ExplicitSwiftModuleMapPath ;
696
+
682
697
// Set the module cache path. If not passed in we use the default swift module
683
698
// cache.
684
699
Invocation.getClangImporterOptions ().ModuleCachePath = options.ModuleCachePath ;
0 commit comments