Index: tools/gn/ninja_binary_target_writer.cc |
diff --git a/tools/gn/ninja_binary_target_writer.cc b/tools/gn/ninja_binary_target_writer.cc |
index a0a4e9fc6ce3c3036e7d44744d10faecb1b5e1d0..1fc06b26e5787debef792f70a551dabd259ee22c 100644 |
--- a/tools/gn/ninja_binary_target_writer.cc |
+++ b/tools/gn/ninja_binary_target_writer.cc |
@@ -351,12 +351,12 @@ void NinjaBinaryTargetWriter::WriteCompilerVars( |
EscapeOptions opts = GetFlagOptions(); |
if (used_types.Get(SOURCE_C) || used_types.Get(SOURCE_CPP) || |
used_types.Get(SOURCE_M) || used_types.Get(SOURCE_MM) || |
- used_types.Get(SOURCE_ASM)) { |
+ used_types.Get(SOURCE_S) || used_types.Get(SOURCE_ASM)) { |
WriteOneFlag(SUBSTITUTION_CFLAGS, false, Toolchain::TYPE_NONE, |
&ConfigValues::cflags, opts); |
} |
if (used_types.Get(SOURCE_C) || used_types.Get(SOURCE_M) || |
- used_types.Get(SOURCE_ASM)) { |
+ used_types.Get(SOURCE_S) || used_types.Get(SOURCE_ASM)) { |
WriteOneFlag(SUBSTITUTION_CFLAGS_C, has_precompiled_headers, |
Toolchain::TYPE_CC, &ConfigValues::cflags_c, opts); |
} |