Created
October 7, 2014 10:53
-
-
Save mnem/2540fece4ed9d3403b98 to your computer and use it in GitHub Desktop.
Preventing mkmf littering with log files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mkmf' | |
# Make the MakeMakefile logger write file output to null. | |
# Probably requires ruby >= 1.9.3 | |
module MakeMakefile::Logging | |
@logfile = File::NULL | |
end |
NARKOZ
commented
May 5, 2015
Thanks for this! Is there any way to prevent checking for ls... yes
from STDOUT?
To stop the "checking for", add @quiet = true
to the above module.
Easier:
MakeMakefile::Logging.quiet = true
HELP
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment