We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ddc3d5 commit 98b60e8Copy full SHA for 98b60e8
src/lib.rs
@@ -762,7 +762,10 @@ 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 =
766
+ env::var("CMAKE_RS_SKIP_COMPILER_FLAG").ok() == Some("1".to_string());
767
+ if !skip_compiler_flag
768
+ && !self.defined("CMAKE_TOOLCHAIN_FILE")
769
&& !self.defined(&tool_var)
770
&& (env::consts::FAMILY != "windows" || (msvc && is_ninja))
771
{
0 commit comments