Fixed devtools/Preprocessor.cpp build

This was caused by a somewhat hidden API breakage in cxxopts, see
https://github.com/jarro2783/cxxopts/issues/396
This commit is contained in:
redtide 2023-05-01 15:36:00 +02:00
parent 37539aef8c
commit 6cd063da8c
No known key found for this signature in database

View file

@ -85,7 +85,7 @@ int main(int argc, char *argv[])
std::unique_ptr<cxxopts::ParseResult> resultPtr; std::unique_ptr<cxxopts::ParseResult> resultPtr;
try { try {
resultPtr = absl::make_unique<cxxopts::ParseResult>(options.parse(argc, argv)); resultPtr = absl::make_unique<cxxopts::ParseResult>(options.parse(argc, argv));
} catch (cxxopts::OptionException& ex) { } catch (cxxopts::exceptions::option_has_no_value& ex) {
std::cerr << ex.what() << "\n"; std::cerr << ex.what() << "\n";
return 1; return 1;
} }