Merge "Treat .cxx files as c++"

This commit is contained in:
Treehugger Robot 2019-06-28 20:43:33 +00:00 committed by Gerrit Code Review
commit 35bb770e0e
2 changed files with 2 additions and 2 deletions

View file

@ -416,7 +416,7 @@ func TransformSourceToObj(ctx android.ModuleContext, subdir string, srcFiles and
ccCmd = "clang"
moduleCflags = cflags
moduleToolingCflags = toolingCflags
case ".cpp", ".cc", ".mm":
case ".cpp", ".cc", ".cxx", ".mm":
ccCmd = "clang++"
moduleCflags = cppflags
moduleToolingCflags = toolingCppflags

View file

@ -141,7 +141,7 @@ func getArguments(src android.Path, ctx android.SingletonContext, ccModule *Modu
isAsm = false
isCpp = false
clangPath = ccPath
case ".cpp", ".cc", ".mm":
case ".cpp", ".cc", ".cxx", ".mm":
isAsm = false
isCpp = true
clangPath = cxxPath