Skip to content

Commit 479354e

Browse files
authored
fix: add patch to fix linux arm build (electron#22523)
1 parent e8c628e commit 479354e

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

patches/config.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55

66
"src/electron/patches/v8": "src/v8",
77

8-
"src/electron/patches/node": "src/third_party/electron_node"
8+
"src/electron/patches/node": "src/third_party/electron_node",
9+
10+
"src/electron/patches/swiftshader": "src/third_party/swiftshader"
911
}

patches/swiftshader/.patches

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
marl_arm.patch

patches/swiftshader/marl_arm.patch

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Cheng Zhao <zcbenz@gmail.com>
3+
Date: Wed, 4 Mar 2020 14:23:28 -0700
4+
Subject: fix: linux arm build
5+
6+
Fix Linux ARM build error caused by compiler update.
7+
8+
This means to be a quick fix, we should choose other solution once we
9+
get an answer at:
10+
https://bugs.chromium.org/p/chromium/issues/detail?id=1058107
11+
12+
diff --git a/third_party/marl/src/osfiber_asm_arm.S b/third_party/marl/src/osfiber_asm_arm.S
13+
index d276ac806..b2be5face 100644
14+
--- a/third_party/marl/src/osfiber_asm_arm.S
15+
+++ b/third_party/marl/src/osfiber_asm_arm.S
16+
@@ -22,6 +22,7 @@
17+
// x1: to
18+
.text
19+
.global marl_fiber_swap
20+
+.type marl_fiber_swap, %function
21+
.align 4
22+
marl_fiber_swap:
23+

0 commit comments

Comments
 (0)