Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0157cc65 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add context for invalid extensions for cc compile"

parents 06e7b6d9 e2861131
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -568,8 +568,11 @@ func transformSourceToObj(ctx android.ModuleContext, subdir string, srcFiles and
			ccCmd = "clang++"
			moduleFlags = cppflags
			moduleToolingFlags = toolingCppflags
		case ".h", ".hpp":
			ctx.PropertyErrorf("srcs", "Header file %s is not supported, instead use export_include_dirs or local_include_dirs.", srcFile)
			continue
		default:
			ctx.ModuleErrorf("File %s has unknown extension", srcFile)
			ctx.PropertyErrorf("srcs", "File %s has unknown extension. Supported extensions: .s, .S, .c, .cpp, .cc, .cxx, .mm", srcFile)
			continue
		}