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

CI: Enable the verbose mode in the mkmf.rb by env MAKEFLAGS. #624

Merged
merged 2 commits into from
May 24, 2023

Conversation

junaruga
Copy link
Member

This PR includes 2 commits, the commit reverting the #623, and a commit to enable the verbose mode in much simpler way.


Enable the verbose option (variable V) in the Makefile generated by
mkmf.rb to print the compiling commands in the process of the rake compile
by setting the environment variable MAKEFLAGS[1] reserved by make. Because
it's helpful to see what compiler warnings are checked.

It seems that this implementation to enable the verbose mode only works in
Linux and macOS. Not Windows.

[1] https://www.gnu.org/software/make/manual/html_node/Variables_002fRecursion.html

This reverts commit a832f5c.

Because there is a simpler way to enable the verbose mode by setting the
environment variable `MAKEFLAGS`.
Enable the verbose option (variable `V`) in the `Makefile` generated by
`mkmf.rb` to print the compiling commands in the process of the `rake compile`
by setting the environment variable `MAKEFLAGS`[1] reserved by `make`. Because
it's helpful to see what compiler warnings are checked.

It seems that this implementation to enable the verbose mode only works in
Linux and macOS. Not Windows.

[1] https://www.gnu.org/software/make/manual/html_node/Variables_002fRecursion.html
@junaruga junaruga force-pushed the wip/enable-mkmf-verbose-env branch from 8011e2d to 08e1981 Compare May 23, 2023 17:14
@junaruga junaruga changed the title CI: Enable the verbose mode in the Makefile by env MAKEFLAGS. CI: Enable the verbose mode in the mkmf.rb by env MAKEFLAGS. May 23, 2023
@junaruga
Copy link
Member Author

@junaruga junaruga merged commit cb8f4ee into ruby:master May 24, 2023
@junaruga junaruga deleted the wip/enable-mkmf-verbose-env branch May 24, 2023 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant