File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -814,7 +814,7 @@ AllowCompilerErrors("allow-compiler-errors",
814
814
llvm::cl::desc (" Whether to attempt to continue despite compiler errors" ),
815
815
llvm::cl::init(false ));
816
816
817
- static llvm::cl::opt <std::string>
817
+ static llvm::cl::list <std::string>
818
818
DefineAvailability (" define-availability" ,
819
819
llvm::cl::desc (" Define a macro for @available" ),
820
820
llvm::cl::cat(Category));
@@ -4238,8 +4238,8 @@ int main(int argc, char *argv[]) {
4238
4238
4239
4239
InitInvok.setSDKPath (options::SDK);
4240
4240
4241
- if (! options::DefineAvailability. empty () ) {
4242
- InitInvok.getLangOptions ().AvailabilityMacros .push_back (options::DefineAvailability );
4241
+ for ( auto macro : options::DefineAvailability) {
4242
+ InitInvok.getLangOptions ().AvailabilityMacros .push_back (macro );
4243
4243
}
4244
4244
for (auto map: options::SerializedPathObfuscate) {
4245
4245
auto SplitMap = StringRef (map).split (' =' );
You can’t perform that action at this time.
0 commit comments