File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 21
21
22
22
env :
23
23
# Packaging prerequisites
24
- # Binutils 2.35.1 released Sep 19, 2020
25
- binutilsVer : " 2.35.1"
26
24
# Demumble 1.1.0 released Nov 13, 2018
27
25
demumbleVer : " 1.1.0"
28
26
# Use SHA256 for hashing files.
67
65
include :
68
66
- os : ubuntu-latest
69
67
tools_platform : linux
68
+ # Binutils 2.35.1 released Sep 19, 2020
69
+ binutils_version : " 2.35.1"
70
70
- os : macos-latest
71
71
tools_platform : darwin
72
+ # On Mac, use an older Binutils to avoid corrupted libraries.
73
+ binutils_version : " 2.28.1"
72
74
steps :
73
75
- name : setup Xcode version (macos)
74
76
if : runner.os == 'macOS'
@@ -81,13 +83,13 @@ jobs:
81
83
# Github runners.
82
84
for retry in {1..10} error; do
83
85
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
86
+ curl -L https://ftpmirror.gnu.org/binutils/binutils-${{ matrix.binutils_version }}.tar.xz --output binutils.tar.xz && break
85
87
sleep 300
86
88
done
87
89
set -e
88
90
89
91
tar -xf binutils.tar.xz
90
- mv ./binutils-${{ env.binutilsVer }} ./binutils-src
92
+ mv ./binutils-${{ matrix.binutils_version }} ./binutils-src
91
93
cd binutils-src
92
94
./configure --enable-targets=all --prefix=/tmp/binutils
93
95
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.
Original file line number Diff line number Diff line change @@ -199,7 +199,11 @@ readonly rename_string=f_b_
199
199
200
200
readonly demangle_cmds=${tools_path} /c++filt,${tools_path} /demumble
201
201
readonly binutils_objcopy=${tools_path} /objcopy
202
- readonly binutils_nm=${tools_path} /nm
202
+ if [[ -x ${tools_path} /nm-new ]] ; then
203
+ readonly binutils_nm=${tools_path} /nm-new
204
+ else
205
+ readonly binutils_nm=${tools_path} /nm
206
+ fi
203
207
readonly binutils_ar=${tools_path} /ar
204
208
205
209
cache_file=/tmp/merge_libraries_cache.$$
You can’t perform that action at this time.
0 commit comments