Since there are already checks enforcing that all -Xarch arguments match
each other and -arch, we can assume that the compiler would also
interpret the following argument, so ccache should interpret it too.
Fixes #1198.
return Statistic::unsupported_compiler_option;
}
state.common_args.push_back(args[i]);
- state.common_args.push_back(args[i + 1]);
- ++i;
return Statistic::none;
}
expect_stat direct_cache_hit 3
expect_stat cache_miss 4
+ # The parameter following -Xarch should be processed.
+ $CCACHE_COMPILE -arch x86_64 -Xarch_x86_64 -analyze -I. -c test1.c
+ expect_stat unsupported_compiler_option 1
+
# -------------------------------------------------------------------------
TEST "cache hit, preprocessor mode"