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

Fix issues in c,cpp,no-std binding examples #272

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

anakrish
Copy link
Collaborator

@anakrish anakrish commented Jun 19, 2024

All of a sudden these fail due to

  • regorus.h not being available. Smething has likely changed in corrosion-rs to cause the main to be compiled before the headers are generated. It could also be a latent issue.
  • Link error due to missing libregorus-ffi.so.

The fix for the former is to ensure in the workflow file that the header is generated by explicitly compiling the ffi binding.
The fix for the latter is to use regorus_ffi in target_link_libraries instead of regorus-ffi.

@anakrish anakrish added the ci label Jun 19, 2024
- Use regorus_ffi in target_link_libraries instead of regorus-ffi.
  Something seems to have changed in corrosion-rs to need this.
- Workaround for cmake issue where FFI header may not be generated in time

Signed-off-by: Anand Krishnamoorthi <[email protected]>
@anakrish anakrish changed the title Workaround for cmake issue where FFI header may not be generated in time Fix issues in c,cpp,no-std binding examples Jun 19, 2024
@anakrish anakrish merged commit 4a2a724 into microsoft:main Jun 19, 2024
15 checks passed
@anakrish anakrish deleted the fix-workflow-name branch June 19, 2024 23:01
@github-actions github-actions bot mentioned this pull request Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant