++i;
}
+ if (util::starts_with(args[i], "-Wa,")
+ && args[i].find('=') != std::string::npos) {
+ LOG("Assembler listing file (-Wa,...=file) is currently not supported: {}",
+ args[i]);
+ return Statistic::unsupported_compiler_option;
+ }
+
// Handle options that should not be passed to the preprocessor.
if (compopt_affects_compiler_output(args[i])) {
state.compiler_only_args.push_back(args[i]);
expect_stat cache_miss 0
expect_stat called_for_preprocessing 1
+ # -------------------------------------------------------------------------
+ if $COMPILER -c -Wa,-a test1.c >&/dev/null; then
+ TEST "-Wa,-a"
+
+ $CCACHE_COMPILE -c -Wa,-a test1.c >first.lst
+ expect_stat preprocessed_cache_hit 0
+ expect_stat cache_miss 1
+
+ $CCACHE_COMPILE -c -Wa,-a test1.c >second.lst
+ expect_stat preprocessed_cache_hit 1
+ expect_stat cache_miss 1
+ expect_equal_content first.lst second.lst
+ fi
+
+ # -------------------------------------------------------------------------
+ if $COMPILER -c -Wa,-a=test1.lst test1.c >&/dev/null; then
+ TEST "-Wa,-a=file"
+
+ $CCACHE_COMPILE -c -Wa,-a=test1.lst test1.c
+ expect_stat preprocessed_cache_hit 0
+ expect_stat cache_miss 0
+ expect_stat unsupported_compiler_option 1
+ fi
+
# -------------------------------------------------------------------------
TEST "-Wp,-P"