Skip to content

Commit

Permalink
Pass -h through directly just as -v
Browse files Browse the repository at this point in the history
This allows doing a simple no-op to test that gas-preprocessor
exists and works, since armasm doesn't have a -v option.
  • Loading branch information
mstorsjo committed Aug 10, 2014
1 parent 5e5f63c commit 37da57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gas-preprocessor.pl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ()
} elsif (grep /\.[sS]$/, @gcc_cmd) {
# asm file, just do C preprocessor
@preprocess_c_cmd = (@gcc_cmd, "-E");
} elsif (grep /-(v|-version|dumpversion)/, @gcc_cmd) {
} elsif (grep /-(v|h|-version|dumpversion)/, @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.
Expand Down

0 comments on commit 37da57e

Please sign in to comment.