vcpkg/ports/fbthrift/fix-annotation.patch

14 lines
647 B
Diff

diff --git a/thrift/compiler/compiler.cc b/thrift/compiler/compiler.cc
index 5e24fd6853f..8c7985e3c11 100644
--- a/thrift/compiler/compiler.cc
+++ b/thrift/compiler/compiler.cc
@@ -734,7 +734,7 @@ std::unique_ptr<t_program_bundle> parse_and_mutate(
const parsing_params& pparams,
const gen_params& gparams) {
auto found_or_error = source_manager::path_or_error();
- if (bundle_annotations()) {
+ if constexpr (bundle_annotations()) {
const std::string scope_path = "thrift/annotation/scope.thrift";
found_or_error = source_mgr.find_include_file(
scope_path, input_filename, pparams.incl_searchpath);