Skip to content

Conversation

jonsimantov
Copy link
Contributor

Using the latest binutils causes blastdoor to create invalid Mac libraries that crash the linker. Until this is fixed in binutils, use an older version that is known to work.

Because this older version does not support thread-local storage on Mac, disable thread-local storage in our usage of websockets via a define at build time. This does not cause a problem because we only use websockets via the Firebase scheduler, which runs all websockets requests in a single worker thread.

@jonsimantov jonsimantov requested a review from a-maurice December 7, 2020 22:34
@google-cla google-cla bot added the cla: yes label Dec 7, 2020
@@ -67,8 +65,12 @@ jobs:
include:
- os: ubuntu-latest
tools_platform: linux
# Binutils 2.35.1 released Sep 19, 2020
binutils_version: "2.35.1"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I've learned you can't use env substitution in matrix definitions, so I had to move the version numbers directly into here.

a-maurice
a-maurice previously approved these changes Dec 7, 2020
@jonsimantov jonsimantov merged commit 0316583 into dev Dec 9, 2020
@jonsimantov jonsimantov deleted the feature/fix-corrupt-mac-libs branch December 15, 2020 07:05
@firebase firebase locked and limited conversation to collaborators Jan 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants