Allows differating between assemblers and will allow using
gas-preprocessor on linux.
---
gas-preprocessor.pl | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index c31045a..65e507b 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -24,6 +24,7 @@ my @preprocess_c_cmd;
my $comm;
my $arch;
+my $as_type = "apple-gas";
my $fix_unreq = $^O eq "darwin";
@@ -39,6 +40,7 @@ command. Following options are currently supported:
-help - this usage text
-arch - target architecture
+ -as-type - one value out of {,apple-}{gas,clang}
-fix-unreq
-no-fix-unreq
";
@@ -75,6 +77,9 @@ while (@options) {
} elsif ($opt eq "-arch") {
$arch = shift @options;
die "unkown arch: '$arch'\n" if not exists $comments{$arch};
+ } elsif ($opt eq "-as-type") {
+ $as_type = shift @options;
+ die "unkown as type: '$as_type'\n" if $as_type !~
/^(apple-)?(gas|clang)$/;
} elsif ($opt eq "-help") {
usage();
exit 0;
--
1.9.0
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel