Skip to content

Commit

Permalink
🔀 Revert "⚗️ Try to enforce Rosetta installation when needed"
Browse files Browse the repository at this point in the history
This reverts commit 478c180.
  • Loading branch information
michprev committed Jul 1, 2024
1 parent 73e5371 commit a86558f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions wake/cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,17 +257,8 @@ def wake_solc() -> None:
console.print(f"solc version {version} is not installed.")
sys.exit(1)

if (
platform.system() == "Darwin"
and platform.machine() == "arm64"
and version < "0.8.24"
):
args = ["arch", "-x86_64", str(solc_path)] + sys.argv[1:]
else:
args = [str(solc_path)] + sys.argv[1:]

proc = subprocess.run(
args,
[str(solc_path)] + sys.argv[1:],
stdin=None,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
Expand Down
11 changes: 1 addition & 10 deletions wake/compiler/solc_frontend/solc_runner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import asyncio
import logging
import platform
import subprocess
from pathlib import Path
from typing import Dict
Expand Down Expand Up @@ -65,15 +64,7 @@ async def __run_solc(
raise SolcCompilationError(
f"solc version `{target_version}` is not installed."
)

if (
platform.system() == "Darwin"
and platform.machine() == "arm64"
and target_version < "0.8.24"
):
args = ["arch", "-x86_64", str(path.resolve()), "--standard-json"]
else:
args = [str(path.resolve()), "--standard-json"]
args = [str(path.resolve()), "--standard-json"]

allow_paths = ",".join(
str(path) for path in self.__config.compiler.solc.allow_paths
Expand Down

0 comments on commit a86558f

Please sign in to comment.