diff --git a/Cargo.toml b/Cargo.toml index fbc56c47ed..41e540202e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -93,3 +93,19 @@ members = [ "homogeneous", "macros", ] + +# do not optimize proc-macro deps or build scripts +[profile.dev.build-override] +codegen-units = 16 +debug = false +debug-assertions = false +opt-level = 0 +overflow-checks = false + + +[profile.release.build-override] +codegen-units = 16 +debug = false +debug-assertions = false +opt-level = 0 +overflow-checks = false diff --git a/macros/src/codegen.rs b/macros/src/codegen.rs index 6007484975..80e65cd4f7 100644 --- a/macros/src/codegen.rs +++ b/macros/src/codegen.rs @@ -75,6 +75,8 @@ pub fn app(app: &App, analysis: &Analysis, extra: &Extra) -> TokenStream2 { #section #cfg_core unsafe extern "C" fn #main() -> ! { + let _TODO: () = (); + #(#assertion_stmts)* #(#pre_init_stmts)* diff --git a/src/lib.rs b/src/lib.rs index 614ba853af..98dd615712 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -164,6 +164,7 @@ pub trait Monotonic { /// A marker trait that indicates that it is correct to use this type in multi-core context pub trait MultiCore {} + /// Sets the given `interrupt` as pending /// /// This is a convenience function around