Module: gas-preprocessor Branch: master Commit: 3c77bcf65f5b7cbf1e7c4c90a4050ac075c31b2d
Author: Janne Grunau <[email protected]> Committer: Janne Grunau <[email protected]> Date: Fri Feb 7 19:42:49 2014 +0100 support probing of assembler type/version with -v or --version When no input file was found but the compiler command contains -v or --version just execute the command. Used by Libav's configure to probe type and version of the backing assembler. --- gas-preprocessor.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 556d3d3..b3893b5 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -29,6 +29,11 @@ if (grep /\.c$/, @gcc_cmd) { } elsif (grep /\.[sS]$/, @gcc_cmd) { # asm file, just do C preprocessor @preprocess_c_cmd = (@gcc_cmd, "-E"); +} elsif (grep /-(v|-version)/, @gcc_cmd) { + # pass -v/--version along, used during probing. Matching '-v' might have + # uninteded results but it doesn't matter much if gas-preprocessor or + # the compiler fails. + exec(@gcc_cmd); } else { die "Unrecognized input filetype"; } _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
