File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 22
22
env :
23
23
# Packaging prerequisites
24
24
# Binutils 2.35.1 released Sep 19, 2020
25
- binutilsVer : " 2.35.1"
25
+ binutilsVerLinux : " 2.35.1"
26
+ # On Mac, use an older Binutils to avoid corrupted libraries.
27
+ binutilsVerDarwin : " 2.28.1"
26
28
# Demumble 1.1.0 released Nov 13, 2018
27
29
demumbleVer : " 1.1.0"
28
30
# Use SHA256 for hashing files.
67
69
include :
68
70
- os : ubuntu-latest
69
71
tools_platform : linux
72
+ binutils_version : ${{ env.binutilsVerLinux }}
70
73
- os : macos-latest
71
74
tools_platform : darwin
75
+ binutils_version : ${{ env.binutilsVerDarwin }}
72
76
steps :
73
77
- name : setup Xcode version (macos)
74
78
if : runner.os == 'macOS'
@@ -81,13 +85,13 @@ jobs:
81
85
# Github runners.
82
86
for retry in {1..10} error; do
83
87
if [[ $retry == "error" ]]; then exit 5; fi
84
- curl -L https://ftpmirror.gnu.org/binutils/binutils-${{ env.binutilsVer }}.tar.xz --output binutils.tar.xz && break
88
+ curl -L https://ftpmirror.gnu.org/binutils/binutils-${{ matrix.binutils_version }}.tar.xz --output binutils.tar.xz && break
85
89
sleep 300
86
90
done
87
91
set -e
88
92
89
93
tar -xf binutils.tar.xz
90
- mv ./binutils-${{ env.binutilsVer }} ./binutils-src
94
+ mv ./binutils-${{ matrix.binutils_version }} ./binutils-src
91
95
cd binutils-src
92
96
./configure --enable-targets=all --prefix=/tmp/binutils
93
97
make
Original file line number Diff line number Diff line change @@ -250,7 +250,11 @@ if(DESKTOP)
250
250
251
251
add_external_library (uWebSockets )
252
252
253
- set (websockets_additional_defines "" )
253
+ # Binutils on Mac doesn't support thread-local storage (required by
254
+ # websockets), but because we only use websockets via the scheduler,
255
+ # we don't need it.
256
+
257
+ set (websockets_additional_defines "-D__thread=" )
254
258
255
259
# uWebSockets does not come with a CMakeLists file, so define the target.
256
260
# Note that since it depends on OpenSSL, only do so if that was found.
You can’t perform that action at this time.
0 commit comments