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

Support compiling multiple source files into a single binary. #5

Open
stevenjswanson opened this issue Oct 1, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@stevenjswanson
Copy link
Member

Something like:

build(["foo.cpp", "bar.cpp"]) to compile one executable from both files.

This is in conflict with #4 , potentially.

A common use case is to compile multiple versions of one file and include some additional files that don't change (eg., test harness). So we could provide an extra_source option to build(). So:

build(["foo.cpp", "bar.cpp"], extra_source=["harness.cpp", "helper.cpp"])

Would build a version for foo.cpp and one for bar.cpp.

@stevenjswanson stevenjswanson added the enhancement New feature or request label Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant