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

Add feed arg to custom_target() #8923

Merged
merged 1 commit into from Jun 29, 2021

Conversation

emersion
Copy link
Contributor

An example of a tool not accepting an input file param is scdoc.

@emersion emersion requested a review from jpakkane as a code owner June 23, 2021 08:59
@codecov
Copy link

codecov bot commented Jun 23, 2021

Codecov Report

Merging #8923 (a835e7b) into master (7bc57d0) will increase coverage by 0.00%.
The diff coverage is 73.07%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #8923   +/-   ##
=======================================
  Coverage   66.32%   66.33%           
=======================================
  Files         372      372           
  Lines       84009    84043   +34     
  Branches    17515    17525   +10     
=======================================
+ Hits        55723    55748   +25     
- Misses      23376    23381    +5     
- Partials     4910     4914    +4     
Impacted Files Coverage Δ
mesonbuild/backend/ninjabackend.py 84.53% <ø> (ø)
mesonbuild/backend/vs2010backend.py 0.00% <ø> (ø)
mesonbuild/build.py 76.77% <25.00%> (-0.18%) ⬇️
mesonbuild/scripts/meson_exe.py 81.70% <83.33%> (+0.93%) ⬆️
mesonbuild/backend/backends.py 88.25% <100.00%> (+0.08%) ⬆️
mesonbuild/interpreter/interpreter.py 79.62% <100.00%> (+0.01%) ⬆️
mesonbuild/scripts/vcstagger.py 87.50% <0.00%> (-4.17%) ⬇️
build.py 73.60% <0.00%> (-0.17%) ⬇️
backend/ninjabackend.py 71.27% <0.00%> (ø)
backend/vs2010backend.py 0.00% <0.00%> (ø)
... and 3 more

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 7bc57d0...a835e7b. Read the comment docs.

@@ -383,6 +383,10 @@ following.
`{'NAME1': 'value1', 'NAME2': 'value2'}` or `['NAME1=value1', 'NAME2=value2']`,
or an [`environment()` object](#environment-object) which allows more
sophisticated environment juggling.
- `feed` *(since 0.59.0)*: there are some compilers that can't be told to read
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps want to write 'programs' rather than 'compilers'?

Copy link
Contributor Author

@emersion emersion Jun 23, 2021

Choose a reason for hiding this comment

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

Right. The capture description mentions "compilers", so I just went with that for consistency. Can change if "programs" is better.


# Note that this will not add a dependency to the compiler executable.
# Code will not be rebuilt if it changes.
comp = '@0@/@1@'.format(meson.current_source_dir(), 'my_compiler.py')
Copy link
Member

Choose a reason for hiding this comment

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

Um... why are we doing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is copy-pasta from 109 custom target capture.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, that seems to be that way since it was added in 70d94a5. I have no idea why :)

@jpakkane
Copy link
Member

This requires a release note snippet.

@emersion
Copy link
Contributor Author

Done.

@jpakkane jpakkane merged commit 1f3adc4 into mesonbuild:master Jun 29, 2021
@emersion emersion deleted the custom-target-feed branch June 29, 2021 17:54
@emersion
Copy link
Contributor Author

Thanks for the review!

emersion added a commit to emersion/sway that referenced this pull request Jul 5, 2021
Since [1], Meson allows feeding the input file as stdin and
capturing stout to the output file. We don't need the sh hack
anymore.

[1]: mesonbuild/meson#8923
emersion added a commit to emersion/sway that referenced this pull request Jul 26, 2021
Since [1], Meson allows feeding the input file as stdin and
capturing stout to the output file. We don't need the sh hack
anymore.

[1]: mesonbuild/meson#8923
emersion added a commit to emersion/sway that referenced this pull request Sep 15, 2021
Since [1], Meson allows feeding the input file as stdin and
capturing stout to the output file. We don't need the sh hack
anymore.

[1]: mesonbuild/meson#8923
emersion added a commit to swaywm/sway that referenced this pull request Sep 15, 2021
Since [1], Meson allows feeding the input file as stdin and
capturing stout to the output file. We don't need the sh hack
anymore.

[1]: mesonbuild/meson#8923
RagnarGrootKoerkamp pushed a commit to RagnarGrootKoerkamp/sway that referenced this pull request Mar 29, 2022
Since [1], Meson allows feeding the input file as stdin and
capturing stout to the output file. We don't need the sh hack
anymore.

[1]: mesonbuild/meson#8923
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.

None yet

3 participants