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

CMake: Work around a weird CMake bug #77

Merged
merged 1 commit into from
May 26, 2021
Merged

CMake: Work around a weird CMake bug #77

merged 1 commit into from
May 26, 2021

Conversation

nomadeel
Copy link
Contributor

There's a weird interaction with a similar command in the capdl-loader
in the capDL repository which causes CMake to ignore the
platform_sift.py call in this repository. Merging the two
add_custom_command calls tells CMake to not ignore it.

Signed-off-by: Damon Lee Damon.Lee@data61.csiro.au

@nomadeel
Copy link
Contributor Author

The issue can be reproduced with this init-build.sh invocation on a camkes manifest: ../init-build.sh -DCAMKES_APP=dma-example -DPLATFORM=sabre -DSIMULATION=ON -DCAmkESCapDLStaticAlloc=TRUE - DCAmkESLargeFramePromotion=ON. The static allocation flag is the most important flag in the reproducible command.

There's a weird interaction with a similar command in the capdl-loader
in the capDL repository which causes CMake to ignore the
platform_sift.py call in this repository. Merging the two
`add_custom_command` calls tells CMake to not ignore it.

Signed-off-by: Damon Lee <Damon.Lee@data61.csiro.au>
Copy link
Contributor

@sylGauthier sylGauthier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this is yet another incremental hack that makes things more and more complicated and confusing but if that works then ship it I guess...

@nomadeel
Copy link
Contributor Author

Well, I'll be happy to revisit it in the future, once things cool down in CI. I think I might even have some time to do it while waiting for CI to pass.

@nomadeel nomadeel merged commit eb3ba77 into master May 26, 2021
@nomadeel nomadeel deleted the fix_ignored_call branch May 26, 2021 07:08
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.

None yet

2 participants