Merge "Don't expect depfile from .s files"
am: 9b84d34be3
Change-Id: Ib87334c82091ea52883d5b0273cdcc2bcc43d315
This commit is contained in:
@@ -55,6 +55,13 @@ var (
|
|||||||
},
|
},
|
||||||
"ccCmd", "cFlags")
|
"ccCmd", "cFlags")
|
||||||
|
|
||||||
|
ccNoDeps = pctx.AndroidGomaStaticRule("ccNoDeps",
|
||||||
|
blueprint.RuleParams{
|
||||||
|
Command: "$relPwd ${config.CcWrapper}$ccCmd -c $cFlags -o $out $in",
|
||||||
|
CommandDeps: []string{"$ccCmd"},
|
||||||
|
},
|
||||||
|
"ccCmd", "cFlags")
|
||||||
|
|
||||||
ld = pctx.AndroidStaticRule("ld",
|
ld = pctx.AndroidStaticRule("ld",
|
||||||
blueprint.RuleParams{
|
blueprint.RuleParams{
|
||||||
Command: "$ldCmd ${crtBegin} @${out}.rsp " +
|
Command: "$ldCmd ${crtBegin} @${out}.rsp " +
|
||||||
@@ -383,9 +390,13 @@ func TransformSourceToObj(ctx android.ModuleContext, subdir string, srcFiles and
|
|||||||
tidy := flags.tidy
|
tidy := flags.tidy
|
||||||
coverage := flags.coverage
|
coverage := flags.coverage
|
||||||
dump := flags.sAbiDump
|
dump := flags.sAbiDump
|
||||||
|
rule := cc
|
||||||
|
|
||||||
switch srcFile.Ext() {
|
switch srcFile.Ext() {
|
||||||
case ".S", ".s":
|
case ".s":
|
||||||
|
rule = ccNoDeps
|
||||||
|
fallthrough
|
||||||
|
case ".S":
|
||||||
ccCmd = "clang"
|
ccCmd = "clang"
|
||||||
moduleCflags = asflags
|
moduleCflags = asflags
|
||||||
tidy = false
|
tidy = false
|
||||||
@@ -416,7 +427,7 @@ func TransformSourceToObj(ctx android.ModuleContext, subdir string, srcFiles and
|
|||||||
}
|
}
|
||||||
|
|
||||||
ctx.Build(pctx, android.BuildParams{
|
ctx.Build(pctx, android.BuildParams{
|
||||||
Rule: cc,
|
Rule: rule,
|
||||||
Description: ccDesc + " " + srcFile.Rel(),
|
Description: ccDesc + " " + srcFile.Rel(),
|
||||||
Output: objFile,
|
Output: objFile,
|
||||||
ImplicitOutputs: implicitOutputs,
|
ImplicitOutputs: implicitOutputs,
|
||||||
|
Reference in New Issue
Block a user