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

Fix[dev_cli] fixed inject_c_files in ao-build-module #1116

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RyanKung
Copy link
Contributor

The function definition is here:

https://github.com/permaweb/ao/blob/main/dev-cli/container/src/ao_module_lib/languages/c.py

def inject_c_files(definition: Definition, c_program: str, c_source_files: list, link_libraries: list):

And the original code may cause error like:

ao build
Traceback (most recent call last):
  File "/usr/local/bin/ao-build-module", line 164, in <module>
    main()
  File "/usr/local/bin/ao-build-module", line 73, in main
    c_program = inject_c_files(definition, c_program, c_source_files)
TypeError: inject_c_files() missing 1 required positional argument: 'link_libraries'

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.

1 participant