return Statistic::unsupported_compiler_option;
}
state.common_args.push_back(args[i]);
- state.common_args.push_back(args[i + 1]);
+ state.common_args.push_back(args[++i]);
return nullopt;
}
expect_stat cache_miss 3
# A single -Xarch_* matching -arch is supported.
- $CCACHE_COMPILE -arch x86_64 -Xarch_x86_64 -I. -c test1.c
+ CCACHE_DEBUG=1 $CCACHE_COMPILE -arch x86_64 -Xarch_x86_64 -I. -c test1.c
expect_stat direct_cache_hit 2
expect_stat cache_miss 4
+ expect_contains test1.o.ccache-log "clang -Xarch_x86_64 -I. -arch x86_64 -E test1.c"
+ expect_not_contains test1.o.ccache-log "clang -Xarch_x86_64 -I. -I. -arch x86_64 -E test1.c"
$CCACHE_COMPILE -arch x86_64 -Xarch_x86_64 -I. -c test1.c
expect_stat direct_cache_hit 3