Skip to content

fix(hh-ovm): Working builds for M1 macs#751

Merged
tynes merged 2 commits intomasterfrom
fix/HH-OVM-M1
May 5, 2021
Merged

fix(hh-ovm): Working builds for M1 macs#751
tynes merged 2 commits intomasterfrom
fix/HH-OVM-M1

Conversation

@ben-chain
Copy link
Copy Markdown
Collaborator

Description
Fixes the long-elusive #675 where builds were failing on M1 macs. There is a better fix for this long-term, but we should merge this in now to unblock M1 users.

Additional context
We barked up the wrong tree on this one for a while because it looked an awful lot like a caching issue, but turned out to be something else: it seems that on M1s, the hardhat TASK_COMPILE_SOLIDITY_RUN_SOLC does not run, probably because it does not see an M1 build, and therefore wants TASK_COMPILE_SOLIDITY_RUN_SOLCJS to be run directly. The fix here routes this task back to TASK_COMPILE_SOLIDITY_RUN_SOLC on the first pass, because hh-ovm already enforces that we run solcjs, and within that task we do the //  @unsupported: evm/ovm filtering.

Metadata

@ben-chain ben-chain requested a review from smartcontracts as a code owner May 4, 2021 21:54
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented May 4, 2021

🦋 Changeset detected

Latest commit: 48b86e7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eth-optimism/hardhat-ovm Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ben-chain ben-chain changed the title fix(hh-ovm): Working compilation for M1 macs fix(hh-ovm): Working builds for M1 macs May 4, 2021
Copy link
Copy Markdown
Contributor

@tynes tynes left a comment

Choose a reason for hiding this comment

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

This needs a changeset and a repro that it works from somebody with a M1

@ben-chain
Copy link
Copy Markdown
Collaborator Author

This needs a changeset and a repro that it works from somebody with a M1

I was able to repro the bug on my own M1 which is where I fixed it, so I think those are both covered now :)

@transmissions11
Copy link
Copy Markdown
Contributor

Confirmed working on my M1. Didn't even see the address manager bug!

@tynes tynes merged commit daf975f into master May 5, 2021
@tynes tynes deleted the fix/HH-OVM-M1 branch May 5, 2021 01:34
InoMurko pushed a commit to omgnetwork/optimism that referenced this pull request May 25, 2021
* fix(hh-ovm): hack RUN_SOLCJS back to RUN_SOLC

* chore: add changeset
theochap pushed a commit that referenced this pull request Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Downloaded Solidity by hardhat does not have kall, causing compilation errors

3 participants