Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
No reason you can't specify the same option twice.
  • Loading branch information
icculus committed Feb 24, 2009
1 parent 7a766c2 commit 252b1dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/mojoshader-compiler.c
Expand Up @@ -220,14 +220,14 @@ int main(int argc, char **argv)

if (strcmp(arg, "-P") == 0)
{
if (action != ACTION_UNKNOWN)
if ((action != ACTION_UNKNOWN) && (action != ACTION_PREPROCESS))
fail("Multiple actions specified");
action = ACTION_PREPROCESS;
} // if

else if (strcmp(arg, "-A") == 0)
{
if (action != ACTION_UNKNOWN)
if ((action != ACTION_UNKNOWN) && (action != ACTION_ASSEMBLE))
fail("Multiple actions specified");
action = ACTION_ASSEMBLE;
} // else if
Expand Down

0 comments on commit 252b1dc

Please sign in to comment.