Merge "Add context for invalid extensions for cc compile" am: 0157cc658a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1516958 Change-Id: If3e34b62bafaa823e62ddc243a61b8b9023fc9e6
This commit is contained in:
commit
bf3f99940c
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue