-
Notifications
You must be signed in to change notification settings - Fork 787
[libclc] Ensure directory exists for libclc files #13529
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
Conversation
Some generators like Unix Makefiles wouldn't automatically ensure that this directory exists, which can break the build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. How was this working before?
I guess that could only be triggered if you manually remove the dir, if you go from the configure/compile scripts it would always be there. |
I'm glad you asked. I don't think this fix is the best. Let me retry it and that should explain it better. |
Aye okay so I found that despite my fix, there were "earlier" steps that also needed the same directory, but were expressed using a CMake variable ( I tried We could also use a custom command or target in the top-level CMakeLists but I found it wasn't running reliably. Perhaps the targets that need that directory would need that target/directory as a dependency. In the end I decided to go with explicit Basically I think this all worked before "the changes" was because we had Please take another look! |
What is the dependency DAG like? I think it looks like (Using
I might have got the order wrong but I think there are just two dependency chains. Correct me if I am wrong. So using this DAG we should only need to create the dir if we are making the original |
I think that's accurate, yep. There's also the There's also the aliasing targets, which depend on |
@intel/llvm-gatekeepers This looks good to merge, thank you. |
Some generators like Unix Makefiles wouldn't automatically ensure that this directory exists, which can break the build.