New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flatbuffers] upgrade the flatbuffers
to v2.0.0
#18897
Conversation
@jixingcn ,Thanks for your pr. |
My application use |
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
@JonLiu1993 @jixingcn it does seem a bit suspicious to add a 19000 lines patch file. |
Sorry, I did not find a patch file with 19000 lines. Can you point it out for me? Thank you |
@jixingcn,Please run the command "./vcpkg x-add-version flatbuffers --overwrite-version" and commit the changes again. |
You can find in 96e57b8. Commit this patch because the pipeline's report. The 19000+ lines were generated by MNN's schema generate script and the latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot commit a 19k line patch like this, especially since it will need to change every time flatbuffers updates -- instead, mnn
's port should run flatc
at build time to generate any needed files.
You can easily get a runnable flatc.exe
by depending on flatbuffers
as a host dependency:
{
"dependencies": [
{ "host": true, "name": "flatbuffers" }
]
}
Then, in the portfile, you can use ${CURRENT_HOST_INSTALLED_DIR}/tools/...
to access the host dependency.
OK, thanks. I will fix that. |
@jixingcn ,Could you please take a look? |
Ok |
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
@jixingcn ,Thanks for your contribution. |
Thanks for your patient. 😃 |
Describe the pull request
What does your PR fix?
Upgrade the
flatbuffers
to v2.0.0Which triplets are supported/not supported? Have you updated the [CI baseline]
Yes
Does your PR follow the maintainer guide?
Yes
If you have added/updated a port: Have you run
./vcpkg x-add-version --all
and committed the result?Yes