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
Conan supports CLang-cl and knows how to set debug parameters for it (for example, gline-tables-only and fno-inline);
Conan has NMakeToolchain and supports NMake;
Issue:
Conan sets the generated CLang build_type_flags to the CL environment variable (it's okay because CLang-cl supports it) and does it in the MSVC CL compiler format (Conan tranforms - characters to /) and that is the problem.
I see some possible solutions:
Disable transformations in NMakeToolchain if the compiler is CLang-cl;
Follow the previous point and to add the filling of the CFLAGS environment variable instead of the CL one.
Thank you!
How to reproduce it
No response
The text was updated successfully, but these errors were encountered:
I think this was addressed in #17387, which was released in latest Conan 2.10.
The way it works is it uses the tools.build:compiler_executables information to see if it is using clang-cl or not, and avoid using the wrong flags.
Could you please try that? Thanks for your feedback!
I use the Conan version 2.10.0 from Pixi (Conda).
The mentioned changes are good but unfortunately it isn't enough.
In my case, "the right clang flags" pass through the NMakeToolchain "_format_options" function and become invalid.
It seems it would be good to improve the NMakeToolchain to support not only "msvc" compiler, but "clang-cl' too.
Describe the bug
Hi! Thank you for your great project!
I faced with the following issue.
Context:
CLang-cl
and knows how to set debug parameters for it (for example,gline-tables-only
andfno-inline
);NMakeToolchain
and supportsNMake
;Issue:
build_type_flags
to theCL
environment variable (it's okay becauseCLang-cl
supports it) and does it in the MSVC CL compiler format (Conan tranforms-
characters to/
) and that is the problem.I see some possible solutions:
NMakeToolchain
if the compiler isCLang-cl
;CFLAGS
environment variable instead of theCL
one.Thank you!
How to reproduce it
No response
The text was updated successfully, but these errors were encountered: