Skip to content

Conversation

@npmiller
Copy link
Contributor

@npmiller npmiller commented Sep 5, 2022

The Windows-Clang CMake module uses lld-link by default, so
having lld built on windows is helpful for people wanting to build SYCL
applications using CMake.

Related to: #6026

The Windows-Clang CMake module uses `lld-link` by default, so
having lld built on windows is helpful for people wanting to build SYCL
applications using CMake.
@npmiller npmiller requested review from a team as code owners September 5, 2022 17:18
bader
bader previously approved these changes Sep 6, 2022
Comment on lines 386 to 387
# Build and install lld as part of the sycl-toolchain if available
if(TARGET lld)
Copy link
Contributor

Choose a reason for hiding this comment

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

I hope it works.
I thought about examining LLVM_ENABLE_PROJECTS value, but assuming that lld's project cmake files are parsed before this cmake file, this should work as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, I was under the incorrect assumptions that the target would need to already be defined for add_dependencies to work anyway, but it looks like add_dependencies still works even if the target is defined later, so I've replaced the conditions with your initial suggestion.

@bader bader merged commit 2086035 into intel:sycl Sep 8, 2022
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.

3 participants