8000 Codegen: proper command line argument parsing by csegarragonz · Pull Request #720 · faasm/faasm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Codegen: proper command line argument parsing #720

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

Merged
merged 7 commits into from
Feb 23, 2023
Merged

Conversation

csegarragonz
Copy link
Collaborator
@csegarragonz csegarragonz commented Feb 13, 2023

I wanted to run inv codegen.local with a --clean flag (to overwrite all generated code).

Adding the flag to the existing runner code, where we manually parse command line variables, proved very cumbersome (and conflicted with the previous addition of the --clean flag for inv codegen <user> <func>).

So, once and for all, I use boost::program_options for the code generation binaries, the same way we did before for function runner binaries.

In addition, hacking around with wasi-libc and the toolchain in general makes it necessary to re-run the codegen several times during debugging for different runtimes. As a consequence, I re-factor codegen.local to codegen.tests (more intuitive) and break it down into: codegen.wavm, codegen.wamr, codegen.sgx, codegen.python, and codegen.libs. Each of which can be called indepdently as a separate task.

@csegarragonz csegarragonz self-assigned this Feb 13, 2023
@csegarragonz csegarragonz merged commit 5167f00 into main Feb 23, 2023
@csegarragonz csegarragonz deleted the codegen-args branch February 23, 2023 11:55
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
0