|
|
@ -5,15 +5,31 @@ |
|
|
|
//! IL. Can also executes the `start` function of the module by laying out the memories, globals
|
|
|
|
//! and tables, then emitting the translated code with hardcoded addresses to memory.
|
|
|
|
|
|
|
|
#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates, unstable_features)] |
|
|
|
#![deny(
|
|
|
|
missing_docs, |
|
|
|
trivial_numeric_casts, |
|
|
|
unused_extern_crates, |
|
|
|
unstable_features |
|
|
|
)] |
|
|
|
#![warn(unused_import_braces)] |
|
|
|
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))] |
|
|
|
#![cfg_attr(feature = "cargo-clippy", allow(new_without_default, new_without_default_derive))] |
|
|
|
#![cfg_attr(
|
|
|
|
feature = "clippy", |
|
|
|
plugin(clippy(conf_file = "../../clippy.toml")) |
|
|
|
)] |
|
|
|
#![cfg_attr(
|
|
|
|
feature = "cargo-clippy", |
|
|
|
allow(new_without_default, new_without_default_derive) |
|
|
|
)] |
|
|
|
#![cfg_attr(
|
|
|
|
feature = "cargo-clippy", |
|
|
|
warn( |
|
|
|
float_arithmetic, mut_mut, nonminimal_bool, option_map_unwrap_or, option_map_unwrap_or_else, |
|
|
|
unicode_not_nfc, use_self |
|
|
|
float_arithmetic, |
|
|
|
mut_mut, |
|
|
|
nonminimal_bool, |
|
|
|
option_map_unwrap_or, |
|
|
|
option_map_unwrap_or_else, |
|
|
|
unicode_not_nfc, |
|
|
|
use_self |
|
|
|
) |
|
|
|
)] |
|
|
|
|
|
|
@ -78,8 +94,7 @@ fn main() { |
|
|
|
d.help(true) |
|
|
|
.version(Some(String::from("0.0.0"))) |
|
|
|
.deserialize() |
|
|
|
}) |
|
|
|
.unwrap_or_else(|e| e.exit()); |
|
|
|
}).unwrap_or_else(|e| e.exit()); |
|
|
|
let (mut flag_builder, isa_builder) = cranelift_native::builders().unwrap_or_else(|_| { |
|
|
|
panic!("host machine is not a supported target"); |
|
|
|
}); |
|
|
|