Skip to content

Commit

Permalink
Added special handling for -m
Browse files Browse the repository at this point in the history
With gcc, you can say things like -march=... and -mtune=... etc.
These broke the old regex, so I made it more precisely match what
the compile really accepts.
  • Loading branch information
run4flat committed Jun 24, 2011
1 parent 1eecd42 commit 405ad5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ExtUtils/nvcc/Backend.pm
Expand Up @@ -305,7 +305,11 @@ sub process_args {
# These are valid command-line options with associated values, but which
# don't have an = seperating the option from the value
or
m/^-[lLDUIoOmG]./
m/^-[lLDUIoOG]./
or
# Handle the machine regex more precisely since gcc has the -march
# option, which can throw this off:
m{^-m(?:32|64)$}
or
# These are valid command-line options that have an = seperating the
# option from the value.
Expand Down

0 comments on commit 405ad5f

Please sign in to comment.