Support .mm files

libchrome uses Objective C++ (.mm) files, treat them like .cc files
and pass them to g++/clang++.

Test: mmma -j external/libchrome
Change-Id: Ib9e5e82d8a9eff5f80a9fe06498a988d70ca4553
This commit is contained in:
Colin Cross
2016-12-01 15:31:22 -08:00
parent 99d7c23006
commit 9978ffe347

View File

@@ -250,7 +250,7 @@ func TransformSourceToObj(ctx android.ModuleContext, subdir string, srcFiles and
case ".c":
ccCmd = "gcc"
moduleCflags = cflags
case ".cpp", ".cc":
case ".cpp", ".cc", ".mm":
ccCmd = "g++"
moduleCflags = cppflags
default: