aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-06-11 16:33:39 +0000
committerGitHub <noreply@github.com>2020-06-11 16:33:39 +0000
commit88982249505868d9cd16563cb5b03a50e115659f (patch)
tree11f0c0f6d2130caf9e549ac0e2e71bb758729b4f
parent4795c1dba39b908bcab4ac148e691e2e99594289 (diff)
parent3ed4fe3771e0187cb1ab40511803fc117e2e36f6 (diff)
Merge #314
314: do not optimize build deps r=korken89 a=japaric this may make CI faster Co-authored-by: Jorge Aparicio <jorge@japaric.io>
-rw-r--r--Cargo.toml16
-rw-r--r--macros/src/codegen.rs2
-rw-r--r--src/lib.rs1
3 files changed, 19 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index fbc56c4..41e5402 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 6007484..80e65cd 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 614ba85..98dd615 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