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:
12
patches/libtock-rs/01-macos.patch
Normal file
12
patches/libtock-rs/01-macos.patch
Normal 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];
|
||||
}
|
||||
}
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user