Do not set the stack size outside prod (#415)

* Add support for multiple modules

* Add macos fix

* Update setup-submodules script
This commit is contained in:
Julien Cretin
2021-11-30 18:11:42 +01:00
committed by GitHub
parent 522e6079e3
commit 37e9d6d64d
4 changed files with 93 additions and 82 deletions

View File

@@ -0,0 +1,12 @@
diff --git a/core/src/stack_size.rs b/core/src/stack_size.rs
index 9145393..ef55383 100644
--- a/core/src/stack_size.rs
+++ b/core/src/stack_size.rs
@@ -14,6 +14,7 @@ macro_rules! stack_size {
{$size:expr} => {
#[no_mangle]
#[link_section = ".stack_buffer"]
+ #[cfg(not(target_os = "macos"))]
pub static mut STACK_MEMORY: [u8; $size] = [0; $size];
}
}

View File

@@ -1,5 +1,5 @@
diff --git a/Cargo.toml b/Cargo.toml
index 06acc26d2..e5db0740b 100644
index 06acc26d2..bd1bbd58f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,7 +20,13 @@ members = [