Merge "bp2build: build //external/scudo/..."

This commit is contained in:
Jingwen Chen
2021-05-13 12:19:43 +00:00
committed by Gerrit Code Review
3 changed files with 52 additions and 1 deletions

View File

@@ -190,7 +190,7 @@ func bp2BuildParseCompilerProps(ctx android.TopDownMutatorContext, module *Modul
// Parse the list of copts.
parseCopts := func(baseCompilerProps *BaseCompilerProperties) []string {
var copts []string
for _, flag := range baseCompilerProps.Cflags {
for _, flag := range append(baseCompilerProps.Cflags, baseCompilerProps.Cppflags...) {
// Soong's cflags can contain spaces, like `-include header.h`. For
// Bazel's copts, split them up to be compatible with the
// no_copts_tokenization feature.