Pass --no-default-features to codegen as well

This commit is contained in:
Guillaume Gomez 2024-02-21 14:58:04 +01:00
parent d2210d4976
commit 114c25feeb

View File

@ -195,6 +195,9 @@ fn build_codegen(args: &mut BuildArg) -> Result<(), String> {
} else { } else {
env.insert("CHANNEL".to_string(), "debug".to_string()); env.insert("CHANNEL".to_string(), "debug".to_string());
} }
if args.config_info.no_default_features {
command.push(&"--no-default-features");
}
let flags = args.flags.iter().map(|s| s.as_str()).collect::<Vec<_>>(); let flags = args.flags.iter().map(|s| s.as_str()).collect::<Vec<_>>();
for flag in &flags { for flag in &flags {
command.push(flag); command.push(flag);