Skip to content

Commit

Permalink
Update doc (#2599)
Browse files Browse the repository at this point in the history
* gitignore for MACOS and pycharm

* the default clang is clang-15 using

* always choose k-which-python for poetry

* auto-check k installation method and set python version

* resolve issues
  • Loading branch information
Stevengre authored Sep 2, 2024
1 parent 043c9a5 commit 6763ec4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@
/tests/specs/**/*.prove.out
/tests/specs/**/*.sol.json
/tests/vm/*.out
.DS_Store
.idea/
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,20 @@ all: poetry
# Building
# --------

PYTHON_BIN := python3.10
ifeq ($(shell command -v k-which-python),)
PYTHON_BIN := python3.10
else
PYTHON_BIN := $(shell k-which-python)
endif

KEVM_PYK_DIR := ./kevm-pyk
POETRY := poetry -C $(KEVM_PYK_DIR)
POETRY_RUN := $(POETRY) run --


.PHONY: poetry-env
poetry-env:
$(POETRY) env use $(PYTHON_BIN)
$(POETRY) env use --no-cache $(PYTHON_BIN)

poetry: poetry-env
$(POETRY) install
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ poetry -C kevm-pyk run kdist --verbose build evm-semantics.plugin
To change the default compiler:

```sh
CXX=clang++-14 poetry -C kevm-pyk run kdist --verbose build evm-semantics.plugin
CXX=clang++-15 poetry -C kevm-pyk run kdist --verbose build evm-semantics.plugin
```

On Apple silicon:
Expand Down

0 comments on commit 6763ec4

Please sign in to comment.