mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Frontend: teach -emit-module and -merge-modules to emit ABI descriptor files
This commit is contained in:
@@ -526,6 +526,8 @@ bool FrontendOptions::canActionEmitLoadedModuleTrace(ActionType action) {
|
||||
}
|
||||
bool FrontendOptions::canActionEmitABIDescriptor(ActionType action) {
|
||||
switch (action) {
|
||||
case ActionType::MergeModules:
|
||||
case ActionType::EmitModuleOnly:
|
||||
case ActionType::CompileModuleFromInterface:
|
||||
return true;
|
||||
case ActionType::NoneAction:
|
||||
@@ -550,8 +552,6 @@ bool FrontendOptions::canActionEmitABIDescriptor(ActionType action) {
|
||||
case ActionType::ScanDependencies:
|
||||
case ActionType::PrintVersion:
|
||||
case ActionType::PrintFeature:
|
||||
case ActionType::MergeModules:
|
||||
case ActionType::EmitModuleOnly:
|
||||
case ActionType::EmitSIL:
|
||||
case ActionType::EmitSIBGen:
|
||||
case ActionType::EmitSIB:
|
||||
|
||||
Reference in New Issue
Block a user