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",
814814 llvm::cl::desc (" Whether to attempt to continue despite compiler errors" ),
815815 llvm::cl::init(false ));
816816
817- static llvm::cl::opt <std::string>
817+ static llvm::cl::list <std::string>
818818 DefineAvailability (" define-availability" ,
819819 llvm::cl::desc (" Define a macro for @available" ),
820820 llvm::cl::cat(Category));
@@ -4238,8 +4238,8 @@ int main(int argc, char *argv[]) {
42384238
42394239 InitInvok.setSDKPath (options::SDK);
42404240
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 );
42434243 }
42444244 for (auto map: options::SerializedPathObfuscate) {
42454245 auto SplitMap = StringRef (map).split (' =' );
You can’t perform that action at this time.
0 commit comments