Change how flags are stored in serialized modules.
This commit changes how both the shared flags and ISA flags are stored in the serialized module to detect incompatibilities when a serialized module is instantiated. It improves the error reporting when a compiled module has mismatched shared flags.
This commit is contained in:
@@ -67,11 +67,13 @@ impl SettingsCommand {
|
||||
println!();
|
||||
println!("Settings inferred for the current host:");
|
||||
|
||||
let mut enabled = isa.enabled_isa_flags();
|
||||
enabled.sort();
|
||||
let mut values = isa.isa_flags();
|
||||
values.sort_by_key(|k| k.name);
|
||||
|
||||
for flag in enabled {
|
||||
println!(" {}", flag);
|
||||
for value in values {
|
||||
if value.as_bool().unwrap_or(false) {
|
||||
println!(" {}", value.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user