Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghc 9.6 v2 #4

Closed
wants to merge 54 commits into from
Closed

Ghc 9.6 v2 #4

wants to merge 54 commits into from

Conversation

elopez
Copy link
Owner

@elopez elopez commented Jul 12, 2024

Description

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

arcz and others added 30 commits April 22, 2024 17:57
Added `startPrank()` and `stopPrank()` cheatcodes to hevm.
Rationale: solc releases prior to 0.8.24 did not contain an executable
for arm64 chips. Without Rosetta, the part of `hevm` that requires calling
`solc` wouldn't work on arm-based OSX.

Upgrading solc also showed that `hevm` loops if the bytecode contains
infinite recursion using only `JUMP` (and not `JUMPI`) instructions.
For this reason we now skip a few tests that contain infinite recursion.
On arm Mac, the GHC is trying to locate libc++, but during that it also
searches for c++ (without the lib prefix), which is an alias for a clang
executable. It tries to load an executable as a static library which
results in an error.

I have no idea why these changes work, but they seem to work.
Foundry does not depend on DS tests anymore, they provide their own
cheatcodes directly in their VM now, so that the `lib` directory no
longer exists.
This shell only sets up the test dependencies, but keeps the Haskell
environment setup from the system.
This is a temporary workaround until the nix/ghc issue on MacOS is fixed
upstream.
@elopez elopez closed this Jul 29, 2024
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.

6 participants