Skip to content

Add guard in examples/*/Makefile to check that common.mk was actually found successfully.#842

Merged
devinamatthews merged 2 commits intomasterfrom
fix-examples-installed
Jan 22, 2025
Merged

Add guard in examples/*/Makefile to check that common.mk was actually found successfully.#842
devinamatthews merged 2 commits intomasterfrom
fix-examples-installed

Conversation

@devinamatthews
Copy link
Copy Markdown
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.
@devinamatthews devinamatthews marked this pull request as ready for review January 22, 2025 17:21
@devinamatthews devinamatthews merged commit d17c063 into master Jan 22, 2025
@devinamatthews devinamatthews deleted the fix-examples-installed branch January 22, 2025 17:23
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