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

Simplify makefiles #169

Merged
merged 4 commits into from
Mar 28, 2022
Merged

Simplify makefiles #169

merged 4 commits into from
Mar 28, 2022

Conversation

league
Copy link
Collaborator

@league league commented Mar 28, 2022

Drop the DRY_RUN distinction in makefiles (make -n works better) and quit trying to use carriage returns \r in makefile output. Please see commit messages for more rationale!

league added 2 commits March 27, 2022 19:45
Make already has a dry run option (`-n`) that prints commands instead
of executing them. It isn't compatible with these `ifeq` blocks and I
don't really see the benefit of the duplication of "if not dry run
exec command else print command".
Using carriage returns is okay interactively and when things are going
well. But it also goes wrong; entire lines usually disappear from build
logs, and in some circumstances I see run-on messages like this:

```
Building C++ source file common.cppBuilding C++ source file memory.cppBuilding
C++ source file affinity.cppBuilding C++ source file cuda.cppBuilding C++ sourc
e file ring.cppBuilding C++ source file ring_impl.cppBuilding C++ source file a
rray.cppBuilding C++ source file unpack.cppBuilding C++ source file quantize.cp
pBuilding C++ source file proclog.cppBuilding C++ source file address.cppIn fil
e included from address.cpp:30:
```

Cleaner looking status messages in one context is not worth the
trouble in other contexts, IMO.
@codecov-commenter
Copy link

codecov-commenter commented Mar 28, 2022

Codecov Report

Merging #169 (6220e56) into master (b3cfd36) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #169   +/-   ##
=======================================
  Coverage   58.54%   58.54%           
=======================================
  Files          67       67           
  Lines        5727     5727           
=======================================
  Hits         3353     3353           
  Misses       2374     2374           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3cfd36...6220e56. Read the comment docs.

@jaycedowell
Copy link
Member

I like it.

@league league merged commit 657e705 into master Mar 28, 2022
league added a commit to league/bifrost that referenced this pull request Mar 28, 2022
@league league deleted the simplify-makefiles branch March 28, 2022 17:24
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