On Mon, 10 Mar 2014, Janne Grunau wrote:

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";
}
--
1.9.0

Probably ok

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to