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

Use BuildProject to compile files in project #1965

Merged
merged 1 commit into from
Nov 4, 2024
Merged

Conversation

plajjan
Copy link
Contributor

@plajjan plajjan commented Nov 3, 2024

If we run the compiler like acton src/foo.act in a project, we want to still build the project like a project, which includes things like first building dependencies. Previously, any invocation of acton on a single file would invoke single file compilation regardless of the location of the file. We now check if we are in a project and run the project build but with the file specified, so only the specified file is compiled.

Fixes #1949

If we run the compiler like `acton src/foo.act` in a project, we want to
still build the project like a project, which includes things like first
building dependencies. Previously, any invocation of acton on a single
file would invoke single file compilation regardless of the location of
the file. We now check if we are in a project and run the project build
but with the file specified, so only the specified file is compiled.
@plajjan plajjan merged commit 5120eba into main Nov 4, 2024
25 of 28 checks passed
@plajjan plajjan deleted the compile-files-in-project branch November 4, 2024 08:06
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.

Support dependencies when compiling individual files in a project
1 participant