-
Notifications
You must be signed in to change notification settings - Fork 714
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
Removed OS condition to install DXCompiler #5713
Conversation
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.
I think the more correct fix to this bug is to change the add_clang_library
macro defined in tools/clang/CMakeLists.txt
to treat dxcompiler
the same way it treats libclang
.
I believe this is intended to fix #5682. |
I was analysing the repo, and I'm only using the install rule originally added to the dxcompiler target, but, I've also added the archive destination, following the pattern of the target and default destination of cmake, this is only for this single install, not for the lib building. |
By the way, are you one of the analysers of this issue? I believe u've looked that I made it |
library in dxcompiler
I've modified my PR, now I removed the OS condition to install target, this is unnecessary, cmake automaticly manages the binaries(runtime [executable and DLLs], library [static libs on Windows, or all libs on another distros] and archive[symbols{...dll.lib}]) of all OS, depending the target |
@microsoft-github-policy-service agree |
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.
This is much more complicated than it needs to be. You should be able to add dxcompiler here:
https://github.com/microsoft/DirectXShaderCompiler/blob/main/tools/clang/CMakeLists.txt#L377
The stuff you're doing with the find_*
is also not correct. I don't think we should make a DXC-specific CMake exports list because ultimately DXC is just a fork of LLVM. I think it would be better to connect these through the existing export mechanism for LLVM targets.
this is the only problem or don't you agree also with the new runtime syntax? if is this the case i discard the change of find_package export, but the first one for me is critical, to move the install syntax |
added the archive(.lib) file to dxcompiler install