Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion domains/runtime/auto-id/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
fn main() {
#[cfg(feature = "std")]
{
std::env::set_var("WASM_BUILD_TYPE", "release");
// SAFETY: no concurrent writing or reading here, build scripts are single threaded.
unsafe { std::env::set_var("WASM_BUILD_TYPE", "release") };
Comment on lines -4 to +5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Search and replace:

fastmod --accept-all --fixed-strings 'std::env::set_var("WASM_BUILD_TYPE", "release");' '// SAFETY: no concurrent writing or reading here, build scripts are single threaded.
        unsafe { std::env::set_var("WASM_BUILD_TYPE", "release") };'

substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.export_heap_base()
Expand Down
3 changes: 2 additions & 1 deletion domains/runtime/evm/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
fn main() {
#[cfg(feature = "std")]
{
std::env::set_var("WASM_BUILD_TYPE", "release");
// SAFETY: no concurrent writing or reading here, build scripts are single threaded.
unsafe { std::env::set_var("WASM_BUILD_TYPE", "release") };
substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.export_heap_base()
Expand Down
3 changes: 2 additions & 1 deletion domains/test/runtime/auto-id/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
fn main() {
#[cfg(feature = "std")]
{
std::env::set_var("WASM_BUILD_TYPE", "release");
// SAFETY: no concurrent writing or reading here, build scripts are single threaded.
unsafe { std::env::set_var("WASM_BUILD_TYPE", "release") };
substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.export_heap_base()
Expand Down
3 changes: 2 additions & 1 deletion domains/test/runtime/evm/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
fn main() {
#[cfg(feature = "std")]
{
std::env::set_var("WASM_BUILD_TYPE", "release");
// SAFETY: no concurrent writing or reading here, build scripts are single threaded.
unsafe { std::env::set_var("WASM_BUILD_TYPE", "release") };
substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.export_heap_base()
Expand Down