eserte / perl-tk

the perl module Tk
https://metacpan.org/release/Tk
Other
44 stars 31 forks source link

MMtry.pm: various improvements to VERBOSE behavior #77

Open chrstphrchvz opened 3 years ago

chrstphrchvz commented 3 years ago

Consume stderr from commands if $VERBOSE, otherwise suppress stderr Always output command line when $VERBOSE regardless of command output, and for try_compile() as well Make $VERBOSE behavior more consistent with other build tools: command line on one line with no trailing semicolon, command output on following lines (if any), no additional trailing newline.

Use warnings pragma Avoid shadowing variables

chrstphrchvz commented 3 years ago

Pushed a commit to factor out duplicate code into a separate sub _do_try(), assuming that is a good idea.