Permalink
Browse files

Skip -x c-header et al too.

  • Loading branch information...
1 parent 2132677 commit bcdbe79b8c60ae08b1b6864bf4673bee9b81d9ce @jperkin jperkin committed Jul 12, 2013
Showing with 8 additions and 6 deletions.
  1. +8 −6 mk/wrapper/scan
View
@@ -38,11 +38,13 @@
# Optional argument processing.
for arg do
case $arg in
- # Append extra libs to output objects, but not when using 'ld -r'.
- -o) append_extra_libs=yes ;;
- -r) rflag=yes ;;
- -E) preproc=yes ;;
- -M*) preproc=yes ;;
- *) ;;
+ # Append extra libs to output objects, but not when using 'ld -r' or a
+ # compiler in pre-processor mode.
+ -o) append_extra_libs=yes ;;
+ -r) rflag=yes ;;
+ -E) preproc=yes ;;
+ -M*) preproc=yes ;;
+ c-header|c++-header) preproc=yes ;;
+ *) ;;
esac
done

0 comments on commit bcdbe79

Please sign in to comment.