Skip to content

Commit

Permalink
Include kompile logs in verbose logger (#2013)
Browse files Browse the repository at this point in the history
* include kompile logs in verbose logger

* Set Version: 1.0.253

* add verbose arg

* Set Version: 1.0.254

* Set Version: 1.0.254

* Set Version: 1.0.255

---------

Co-authored-by: devops <[email protected]>
Co-authored-by: rv-jenkins <[email protected]>
  • Loading branch information
3 people authored Aug 12, 2023
1 parent 7707397 commit 51573ee
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kevm-pyk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "kevm-pyk"
version = "1.0.254"
version = "1.0.255"
description = ""
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down
4 changes: 4 additions & 0 deletions kevm-pyk/src/kevm_pyk/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def exec_kompile(
debug: bool = False,
enable_llvm_debug: bool = False,
llvm_library: bool = False,
verbose: bool = False,
**kwargs: Any,
) -> None:
optimization = 0
Expand All @@ -136,6 +137,7 @@ def exec_kompile(
enable_llvm_debug=enable_llvm_debug,
llvm_kompile_type=LLVMKompileType.C if llvm_library else LLVMKompileType.MAIN,
debug=debug,
verbose=verbose,
)


Expand Down Expand Up @@ -171,6 +173,7 @@ def exec_foundry_kompile(
llvm_kompile: bool = True,
debug: bool = False,
llvm_library: bool = False,
verbose: bool = False,
**kwargs: Any,
) -> None:
_ignore_arg(kwargs, 'main_module', f'--main-module {kwargs["main_module"]}')
Expand All @@ -192,6 +195,7 @@ def exec_foundry_kompile(
llvm_kompile=llvm_kompile,
debug=debug,
llvm_library=llvm_library,
verbose=verbose,
)


Expand Down
2 changes: 2 additions & 0 deletions kevm-pyk/src/kevm_pyk/foundry.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ def foundry_kompile(
llvm_kompile: bool = True,
debug: bool = False,
llvm_library: bool = False,
verbose: bool = False,
) -> None:
from .kompile import KompileTarget, kevm_kompile

Expand Down Expand Up @@ -460,6 +461,7 @@ def _kompile(
ccopts=ccopts,
llvm_kompile_type=llvm_kompile_type,
debug=debug,
verbose=verbose,
)

def kompilation_digest() -> str:
Expand Down
3 changes: 2 additions & 1 deletion kevm-pyk/src/kevm_pyk/kompile.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def kevm_kompile(
llvm_kompile_type: LLVMKompileType | None = None,
enable_llvm_debug: bool = False,
debug: bool = False,
verbose: bool = False,
) -> Path:
backend = target.backend
md_selector = target.md_selector
Expand Down Expand Up @@ -141,7 +142,7 @@ def kevm_kompile(
raise ValueError(f'Unsupported backend: {backend.value}')

try:
return kompile(output_dir=output_dir or target.definition_dir, debug=debug)
return kompile(output_dir=output_dir or target.definition_dir, debug=debug, verbose=verbose)
except RuntimeError as err:
sys.stderr.write(f'\nkompile stdout:\n{err.args[1]}\n')
sys.stderr.write(f'\nkompile stderr:\n{err.args[2]}\n')
Expand Down
2 changes: 1 addition & 1 deletion package/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kevm (1.0.254) unstable; urgency=medium
kevm (1.0.255) unstable; urgency=medium

* Initial Release.

Expand Down
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.254
1.0.255

0 comments on commit 51573ee

Please sign in to comment.