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

makefile: small fixes #600

Merged
merged 2 commits into from
May 11, 2024
Merged

makefile: small fixes #600

merged 2 commits into from
May 11, 2024

Conversation

the-horo
Copy link
Contributor

@the-horo the-horo commented May 2, 2024

No description provided.

Don't call the D compiler with bin/githash.txt as a source file.

Signed-off-by: Andrei Horodniceanu <[email protected]>
@WebFreak001
Copy link
Member

I don't know much about makefiles, anyone else willing to review this or who cares about the makefiles? Otherwise we can just merge this in

@@ -40,7 +39,7 @@ test: debug
cd tests && ./test.d

bin/dfmt-test: bin/githash.txt $(SRC)
$(DC) $(DMD_TEST_FLAGS) $^ -of$@
$(DC) $(DMD_TEST_FLAGS) $(filter %.d,$^) -of$@
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here bin/githash.txt is supplied as a dependency which will get passed to the D compiler when using $^, and the call to filter (also used in the bin/dfmt target) will make sure only .d files are passed.

@WebFreak001 WebFreak001 merged commit 0ea0572 into dlang-community:master May 11, 2024
1 check passed
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.

3 participants