You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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 😄
The text was updated successfully, but these errors were encountered:
@Xav83 I can't reproduce the error 😅
Which version of CMake are you using and what arguments are you passing to it exactly?
Could you please also share the output of calling cmake in a new binary directory, when it detects the C/CXX compiler and its features?
Thanks!
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 forclang
. 😢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:
FRUT/cmake/Reprojucer.cmake
Lines 5565 to 5569 in 37dc1a7
FRUT/cmake/Reprojucer.cmake
Lines 5587 to 5592 in 37dc1a7
FRUT/cmake/Reprojucer.cmake
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 toolsetclangCl
🙂I hope this help you enhance FRUT support on Visual Studio 2019 🙂
Have a great day 😄
The text was updated successfully, but these errors were encountered: