Visual Studio 2019 - ClangCl Toolset - LTCG flag
Xav83 opened this issue ยท 2 comments
Hi @McMartin ,
In our project, we have been experimenting with clangCl
as a toolset of Visual Studio 2019 to compile our project with clang on Windows.
Everything seems to work well, except for the flag /LTCG
which triggers an error since it doesn't exist for clang
. ๐ข
Since, we have only been experimenting with clangCl
, disabling the flag manually in Visual Studio was good for us.
Regardless, I want to report this to you, because it may come from the cmake code below:
Lines 5565 to 5569 in 37dc1a7
Lines 5587 to 5592 in 37dc1a7
Lines 5601 to 5606 in 37dc1a7
To be sure, before submitting this issue, I have set the variable ltcg_link_flag
to an empty string, and remove the others /LTCG
, and then everything compiled fine with the toolset clangCl
๐
I hope this help you enhance FRUT support on Visual Studio 2019 ๐
Have a great day ๐