Skip to content
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

Add alwayslink=1 to //src:flatc to fix Windows build failure. #8088

Closed
wants to merge 1 commit into from

Conversation

hawkinsp
Copy link
Member

@hawkinsp hawkinsp commented Sep 7, 2023

When built on Windows, the main() symbol ends up stripped out of the //:flatc binary unless the library containing main() is tagged alwayslink=1.

@github-actions github-actions bot added the codegen Involving generating code from schema label Sep 7, 2023
hawkinsp added a commit to hawkinsp/jax that referenced this pull request Sep 7, 2023
Use upstream flatbuffer bazel scripts, with a couple of small patches to fix:
* google/flatbuffers#8087 (remove npm references)
* google/flatbuffers#8088 (fix flatc build failure due to main() removal by linker)
hawkinsp added a commit to hawkinsp/jax that referenced this pull request Sep 7, 2023
Use upstream flatbuffer bazel scripts, with a couple of small patches to fix:
* google/flatbuffers#8087 (remove npm references)
* google/flatbuffers#8088 (fix flatc build failure due to main() removal by linker)
hawkinsp added a commit to hawkinsp/jax that referenced this pull request Sep 7, 2023
Use upstream flatbuffer bazel scripts, with a couple of small patches to fix:
* google/flatbuffers#8087 (remove npm references)
* google/flatbuffers#8088 (fix flatc build failure due to main() removal by linker)
copybara-service bot pushed a commit to jax-ml/jax that referenced this pull request Sep 7, 2023
--
3905d61 by Peter Hawkins <[email protected]>:

Update flatbuffers.

Use upstream flatbuffer bazel scripts, with a couple of small patches to fix:
* google/flatbuffers#8087 (remove npm references)
* google/flatbuffers#8088 (fix flatc build failure due to main() removal by linker)

COPYBARA_INTEGRATE_REVIEW=#17502 from hawkinsp:fb 3905d61
PiperOrigin-RevId: 563543954
When built on Windows, the main() symbol ends up stripped out of the //:flatc binary unless the library containing main() is tagged alwayslink=1.
@dbaileychess
Copy link
Collaborator

can you run the build cleaner for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codegen Involving generating code from schema
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants