Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nginx-otel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
thirdparty
nginx-otel
Commits
cd9c91ac
Commit
cd9c91ac
authored
2 years ago
by
Pavel Pautov
Committed by
dplotnikov-f5
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove unnecessary UTF8 check from generated protobuf code.
parent
85a3fcb3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+10
-6
10 additions, 6 deletions
CMakeLists.txt
with
10 additions
and
6 deletions
CMakeLists.txt
+
10
−
6
View file @
cd9c91ac
...
...
@@ -83,13 +83,17 @@ set(PROTO_SOURCES
# generate protobuf code for lite runtime
add_custom_command
(
OUTPUT
${
PROTO_SOURCES
}
#${PROTO_HEADERS}
OUTPUT
${
PROTO_SOURCES
}
COMMAND protobuf::protoc
ARGS --proto_path
${
PROTO_DIR
}
--cpp_out lite:
${
PROTO_OUT_DIR
}
--grpc_out
${
PROTO_OUT_DIR
}
--plugin protoc-gen-grpc=$<TARGET_FILE:gRPC::grpc_cpp_plugin>
${
PROTOS
}
--proto_path
${
PROTO_DIR
}
--cpp_out lite:
${
PROTO_OUT_DIR
}
--grpc_out
${
PROTO_OUT_DIR
}
--plugin protoc-gen-grpc=$<TARGET_FILE:gRPC::grpc_cpp_plugin>
${
PROTOS
}
# remove inconsequential UTF8 check during serialization to aid performance
COMMAND sed -i.bak
-e
[[/ ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(/,/);/d]]
${
PROTO_SOURCES
}
DEPENDS
${
PROTOS
}
protobuf::protoc gRPC::grpc_cpp_plugin
VERBATIM
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment