We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ddc3d5 commit e710a28Copy full SHA for e710a28
src/lib.rs
@@ -762,7 +762,9 @@ impl Config {
762
// Also specify this on Windows only if we use MSVC with Ninja,
763
// as it's not needed for MSVC with Visual Studio generators and
764
// for MinGW it doesn't really vary.
765
- if !self.defined("CMAKE_TOOLCHAIN_FILE")
+ let skip_compiler_flag = env::var("CMAKE_RS_SKIP_COMPILER_FLAG").ok() == Some("1".to_string());
766
+ if !skip_compiler_flag
767
+ && !self.defined("CMAKE_TOOLCHAIN_FILE")
768
&& !self.defined(&tool_var)
769
&& (env::consts::FAMILY != "windows" || (msvc && is_ninja))
770
{
0 commit comments