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

Check that kernel source code has extern C defined #70

Merged
merged 11 commits into from
Oct 15, 2024

Conversation

mariodruiz
Copy link
Collaborator

Describe the problem solved by the commit

No check is done about kernel wrapping top function in extern C, this leads to application not being built with a not very useful error message. #65

How is the problem solved?

Add two simple checks to see if the extern C string is in the source file

Are there any risks associated to the change?

No

Is there a documentation impact?

No

Checklist

  • I added a test to cover my changes
  • Existing and new test pass
  • I read and I accept the CONTRIBUTING.md guidelines

Please provide screenshots (if applicable)

Related issues

@mariodruiz mariodruiz linked an issue Oct 15, 2024 that may be closed by this pull request
@mariodruiz mariodruiz marked this pull request as draft October 15, 2024 07:32
@mariodruiz mariodruiz marked this pull request as ready for review October 15, 2024 09:27
@mariodruiz mariodruiz merged commit cfc79b1 into AMDResearch:main Oct 15, 2024
0 of 2 checks passed
mariodruiz added a commit to mariodruiz/Riallto that referenced this pull request Oct 15, 2024
* Verify that kernel code is wrapped in extern C

* Remove curly braces

* Add breakline

* Change raise type

* Fix checks

* Return RunTime error

* Check construct

* Use Syntax error

* Change way we do pytest

* Only check if extern C exists

* Remove unused check
@mariodruiz mariodruiz deleted the externccheck branch October 16, 2024 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Further and clearer error when extern C missing
1 participant