cc1plus 700 B

1234567891011121314151617181920212223242526272829
  1. #! /bin/sh
  2. # This file intercepts the pre-processor and runs 'stringfix' on the source file before it is processed.
  3. # This avoids the need for the old _*.c temp files.
  4. # Only capture pre-processing
  5. if [ $1 != "-E" -o -z "$STRINGFIX" -o ! -f "$STRINGFIX" ]; then
  6. exec $(${COLLECT_GCC} --print-prog-name=cc1plus) $@
  7. fi
  8. # Check for '-MD' as this may be the 'depcomp' call
  9. depcomp=0
  10. for arg; do
  11. case "$arg" in
  12. -MD)
  13. depcomp=1
  14. ;;
  15. *)
  16. ;;
  17. esac
  18. done
  19. # Only continue if running in depcomp (avoiding a 2nd pass for -dD/-g3)
  20. if [ $depcomp -eq 0 ]; then
  21. exec $(${COLLECT_GCC} --print-prog-name=cc1plus) $@
  22. fi
  23. exec $(${COLLECT_GCC} --print-prog-name=cc1plus) $@ | $STRINGFIX