Module: gas-preprocessor Branch: master Commit: d4d5b3af54fa63816e8b0b7668d0212ebc7dd227
Author: Janne Grunau <[email protected]> Committer: Janne Grunau <[email protected]> Date: Sun Mar 9 20:41:46 2014 +0100 Add as-type option 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; _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
