Merge "Treat .cxx files as c++"
This commit is contained in:
@@ -416,7 +416,7 @@ func TransformSourceToObj(ctx android.ModuleContext, subdir string, srcFiles and
|
|||||||
ccCmd = "clang"
|
ccCmd = "clang"
|
||||||
moduleCflags = cflags
|
moduleCflags = cflags
|
||||||
moduleToolingCflags = toolingCflags
|
moduleToolingCflags = toolingCflags
|
||||||
case ".cpp", ".cc", ".mm":
|
case ".cpp", ".cc", ".cxx", ".mm":
|
||||||
ccCmd = "clang++"
|
ccCmd = "clang++"
|
||||||
moduleCflags = cppflags
|
moduleCflags = cppflags
|
||||||
moduleToolingCflags = toolingCppflags
|
moduleToolingCflags = toolingCppflags
|
||||||
|
@@ -141,7 +141,7 @@ func getArguments(src android.Path, ctx android.SingletonContext, ccModule *Modu
|
|||||||
isAsm = false
|
isAsm = false
|
||||||
isCpp = false
|
isCpp = false
|
||||||
clangPath = ccPath
|
clangPath = ccPath
|
||||||
case ".cpp", ".cc", ".mm":
|
case ".cpp", ".cc", ".cxx", ".mm":
|
||||||
isAsm = false
|
isAsm = false
|
||||||
isCpp = true
|
isCpp = true
|
||||||
clangPath = cxxPath
|
clangPath = cxxPath
|
||||||
|
Reference in New Issue
Block a user