mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 06:49:11 +08:00
21 lines
782 B
Diff
21 lines
782 B
Diff
diff --git a/thrift/compiler/compiler.cc b/thrift/compiler/compiler.cc
|
|
index 55d8fcaff7..97b0db790b 100644
|
|
--- a/thrift/compiler/compiler.cc
|
|
+++ b/thrift/compiler/compiler.cc
|
|
@@ -735,6 +735,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();
|
|
+#ifndef THRIFT_OSS
|
|
if (bundle_annotations()) {
|
|
const std::string scope_path = "thrift/annotation/scope.thrift";
|
|
found_or_error =
|
|
@@ -747,6 +748,7 @@ std::unique_ptr<t_program_bundle> parse_and_mutate(
|
|
scope_path, std::string(content.data(), content.size()));
|
|
}
|
|
}
|
|
+#endif
|
|
|
|
// Parse it!
|
|
std::unique_ptr<t_program_bundle> program_bundle = parse_ast(
|