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

buildsys: simplify C compilation build rule #2704

Merged
merged 1 commit into from
Aug 15, 2018

Conversation

fingolfin
Copy link
Member

Instead of having two Makefile rules for C compilation, one for gen/.c and one for src/.c, use a single rule, by uniformly placing the object files for FOO/.c into obj/FOO/.c.

As a side effect, it now becomes trivial to use the general build rule for C
files in arbitrary locations, e.g. as part of the test suite.

This change comes from PR #2667, but it may be of independent use in PR #2702 for the C test file; and also for writing C based kernel tests, see issue #1917.

@fingolfin fingolfin added topic: build system release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes labels Aug 15, 2018
Instead of having two Makefile rules for C compilation, one for gen/*.c and
one for src/*.c, use a single rule, by uniformly placing the object files for
FOO/*.c into obj/FOO/*.c.

As a side effect, it now becomes trivial to use the general build rule for C
files in arbitrary locations, e.g. as part of the test suite.
@codecov
Copy link

codecov bot commented Aug 15, 2018

Codecov Report

Merging #2704 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2704      +/-   ##
==========================================
+ Coverage   75.52%   75.52%   +<.01%     
==========================================
  Files         478      478              
  Lines      241590   241620      +30     
==========================================
+ Hits       182465   182493      +28     
- Misses      59125    59127       +2
Impacted Files Coverage Δ
src/calls.c 94.79% <0%> (ø) ⬆️
src/io.c 61.02% <0%> (+0.27%) ⬆️
hpcgap/lib/hpc/stdtasks.g 64.96% <0%> (+1.53%) ⬆️

@fingolfin fingolfin merged commit fc0a0c3 into gap-system:master Aug 15, 2018
@fingolfin fingolfin deleted the mh/buildsys-simplify branch August 15, 2018 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants