Support compiling with ClangCL and Visual Studio#5259
Support compiling with ClangCL and Visual Studio#5259buresu wants to merge 1 commit intolightgbm-org:masterfrom
Conversation
jameslamb
left a comment
There was a problem hiding this comment.
Thanks very much for this proposal! I hadn't heard of clang-cl until today. Will need to do a bit of research on this, and maybe test with a new CI job.
Links I'm finding useful (for the benefit of other reviewers):
|
Thank you for reviewing. |
|
What I've learned from links in #5259 (review) so far (thanks a lot @jameslamb for them!):
|
This project is tested with That is probably why you haven't been able to reproduce this on Linux. I suspect the issue you've faced is specific to using |
|
@jameslamb I beleave this problem is also occurd on linux (in some cases). |
|
After noticing the above, I built on the vc prompt and the build went through without this change. |
|
@buresu sorry, could you clarify? Are you saying that the following worked for you with with 0 modifications to LightGBM? cmake .. -G "Visual Studio 16 2019" -T ClangCL -A x64
cmake --build . --config ReleaseOr did you have to modify |
|
@jameslamb Yes, the build successful with zero changes using vc prompt. |
|
ahhh ok, thanks for the additional information @buresu ! |
|
This pull request has been automatically locked since there has not been any recent activity since it was closed. |
build with the following commands.