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
cargo_output.print_warning(&"Compiler family detection failed since it does not define `__clang__`, `__GNUC__`, `__EMSCRIPTEN__` or `__VXWORKS__`, also does not accept cl style flag `-?`, fallback to treating it as GNU");
140
+
Err(Error::new(
141
+
ErrorKind::ToolFamilyMacroNotFound,
142
+
"Expects macro `__clang__`, `__GNUC__` or `__EMSCRIPTEN__`, `__VXWORKS__` or accepts cl style flag `-?`, but found none",
143
+
))
144
+
}
145
+
}
146
+
}
147
+
108
148
fndetect_family_inner(
109
149
path:&Path,
110
150
cargo_output:&CargoOutput,
@@ -140,53 +180,30 @@ impl Tool {
140
180
tmp_file.sync_data()?;
141
181
drop(tmp_file);
142
182
183
+
// When expanding the file, the compiler prints a lot of information to stderr
184
+
// that it is not an error, but related to expanding itself.
185
+
//
186
+
// cc would have to disable warning here to prevent generation of too many warnings.
cargo_output.print_warning(&"Compiler family detection failed since it does not define `__clang__`, `__GNUC__`, `__EMSCRIPTEN__` or `__VXWORKS__`, also does not accept cl style flag `-?`, fallback to treating it as GNU");
185
-
Err(Error::new(
186
-
ErrorKind::ToolFamilyMacroNotFound,
187
-
"Expects macro `__clang__`, `__GNUC__` or `__EMSCRIPTEN__`, `__VXWORKS__` or accepts cl style flag `-?`, but found none",
0 commit comments