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 guard in examples/*/Makefile to check that common.mk was actually found successfully. #842

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

devinamatthews
Copy link
Member

Details:

  • If the examples are built out-of-tree then BLIS_INSTALL_PATH needs to be set to find the header, library, and build system files. Also, if the examples are attempted to be built before configuring blis then common.mk will be missing.
  • Current behavior silently ignores the failed import of common.mk which causes various difficult-to-diagnose problems.
  • This addresses some of the behavior seen in Compiling examples outside build #840, but does not fully fix it.

…ally found successfully.

Details:
- If the examples are built out-of-tree then `BLIS_INSTALL_PATH` needs to be set to find the header, library, and build system files. Also, if the examples are attempted to be built before configuring blis then `common.mk` will be missing.
- Current behavior silently ignores the failed import of `common.mk` which causes various difficult-to-diagnose problems.
@devinamatthews devinamatthews marked this pull request as draft January 17, 2025 19:52
Details:
- When building examples out-of-tree (or potentially other external code using `common.mk`), `DIST_PATH` will not be set and so `common.mk` will not be able to locate `build/detect/android/bionic.h`, causing a compiler error in some cases.
- This has been fixed by including the contents of `bionic.h` in the shell statement executing the compiler check.
- Fixes #840.
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.

1 participant