check for -G prefix, error out when -G is used together with --use-ninja