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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user