From 25a616ce0857f9aa84f236673d8b49e6e252e966 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexander=20Thei=C3=9Fen?= <alex.theissen@me.com>
Date: Thu, 30 Mar 2023 16:20:12 +0200
Subject: [PATCH] Build wasm for mvp cpu (#13758)

---
 substrate/utils/wasm-builder/src/wasm_project.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/substrate/utils/wasm-builder/src/wasm_project.rs b/substrate/utils/wasm-builder/src/wasm_project.rs
index a3038c4e934..d25fb4acd23 100644
--- a/substrate/utils/wasm-builder/src/wasm_project.rs
+++ b/substrate/utils/wasm-builder/src/wasm_project.rs
@@ -632,7 +632,7 @@ fn build_project(
 	let mut build_cmd = cargo_cmd.command();
 
 	let rustflags = format!(
-		"-C link-arg=--export-table {} {}",
+		"-C target-cpu=mvp -C link-arg=--export-table {} {}",
 		default_rustflags,
 		env::var(crate::WASM_BUILD_RUSTFLAGS_ENV).unwrap_or_default(),
 	);
-- 
GitLab