From 6cd063da8c6973447b0f86b63100e2aa1f2b1d48 Mon Sep 17 00:00:00 2001 From: redtide Date: Mon, 1 May 2023 15:36:00 +0200 Subject: [PATCH] Fixed devtools/Preprocessor.cpp build This was caused by a somewhat hidden API breakage in cxxopts, see https://github.com/jarro2783/cxxopts/issues/396 --- devtools/Preprocessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/Preprocessor.cpp b/devtools/Preprocessor.cpp index a053d4341..eef30406b 100644 --- a/devtools/Preprocessor.cpp +++ b/devtools/Preprocessor.cpp @@ -85,7 +85,7 @@ int main(int argc, char *argv[]) std::unique_ptr resultPtr; try { resultPtr = absl::make_unique(options.parse(argc, argv)); - } catch (cxxopts::OptionException& ex) { + } catch (cxxopts::exceptions::option_has_no_value& ex) { std::cerr << ex.what() << "\n"; return 1; }