Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Dec 14, 2022
1 parent 12a37ce commit b9b545e
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 40 deletions.
3 changes: 2 additions & 1 deletion runtime/khala/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ subbridge-pallets = { path = "../../pallets/subbridge", default-features = false
pallet-phala-world = { path = "../../pallets/phala-world", default-features = false }

[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", optional = true }

[features]
default = ["std", "include-wasm"]
Expand Down Expand Up @@ -156,6 +156,7 @@ std = [
"sp-transaction-pool/std",
"sp-inherents/std",
"sp-consensus-aura/std",
"substrate-wasm-builder",
"frame-support/std",
"frame-benchmarking/std",
"frame-executive/std",
Expand Down
15 changes: 8 additions & 7 deletions runtime/khala/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.

use substrate_wasm_builder::WasmBuilder;

fn main() {
WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build()
#[cfg(feature = "std")]
{
substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build();
}
}
3 changes: 2 additions & 1 deletion runtime/phala/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ assets-registry = { path = "../../pallets/assets-registry", default-features = f
subbridge-pallets = { path = "../../pallets/subbridge", default-features = false }

[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", optional = true }

[features]
default = ["std", "include-wasm"]
Expand Down Expand Up @@ -140,6 +140,7 @@ std = [
"sp-transaction-pool/std",
"sp-inherents/std",
"sp-consensus-aura/std",
"substrate-wasm-builder",
"frame-support/std",
"frame-benchmarking/std",
"frame-executive/std",
Expand Down
16 changes: 9 additions & 7 deletions runtime/phala/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.

use substrate_wasm_builder::WasmBuilder;

fn main() {
WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build()
#[cfg(feature = "std")]
{
substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build();
}
}

3 changes: 2 additions & 1 deletion runtime/rhala/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ subbridge-pallets = { path = "../../pallets/subbridge", default-features = false
pallet-phala-world = { path = "../../pallets/phala-world", default-features = false }

[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", optional = true }

[features]
default = ["std", "include-wasm"]
Expand Down Expand Up @@ -156,6 +156,7 @@ std = [
"sp-transaction-pool/std",
"sp-inherents/std",
"sp-consensus-aura/std",
"substrate-wasm-builder",
"frame-support/std",
"frame-benchmarking/std",
"frame-executive/std",
Expand Down
15 changes: 8 additions & 7 deletions runtime/rhala/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.

use substrate_wasm_builder::WasmBuilder;

fn main() {
WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build()
#[cfg(feature = "std")]
{
substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build();
}
}
3 changes: 2 additions & 1 deletion runtime/shell/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ xcm-executor = { git = "https://github.com/paritytech/polkadot", default-feature
pallet-sudo = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", default-features = false }

[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", optional = true }

[features]
default = ["std"]
Expand All @@ -67,6 +67,7 @@ std = [
"sp-block-builder/std",
"sp-transaction-pool/std",
"sp-inherents/std",
"substrate-wasm-builder",
"frame-support/std",
"frame-executive/std",
"frame-system/std",
Expand Down
15 changes: 8 additions & 7 deletions runtime/shell/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.

use substrate_wasm_builder::WasmBuilder;

fn main() {
WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build()
#[cfg(feature = "std")]
{
substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build();
}
}
3 changes: 2 additions & 1 deletion runtime/thala/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ subbridge-pallets = { path = "../../pallets/subbridge", default-features = false
pallet-phala-world = { path = "../../pallets/phala-world", default-features = false }

[build-dependencies]
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33" }
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.33", optional = true }

[features]
default = ["std", "include-wasm"]
Expand Down Expand Up @@ -157,6 +157,7 @@ std = [
"sp-transaction-pool/std",
"sp-inherents/std",
"sp-consensus-aura/std",
"substrate-wasm-builder",
"frame-support/std",
"frame-benchmarking/std",
"frame-executive/std",
Expand Down
15 changes: 8 additions & 7 deletions runtime/thala/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.

use substrate_wasm_builder::WasmBuilder;

fn main() {
WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build()
#[cfg(feature = "std")]
{
substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build();
}
}

0 comments on commit b9b545e

Please sign in to comment.