Fix how the rule is displayed in the error message.
Bug: 204001941 Test: internal Change-Id: I19c73356cc305ec7a6dfd3bddbde775ef9ca4953
This commit is contained in:
@@ -961,6 +961,23 @@ def init(g, handle):
|
||||
if not _varmod_init:
|
||||
rblf.mkerror("cannot")
|
||||
rblf.inherit(handle, _varmod, _varmod_init)
|
||||
`,
|
||||
},
|
||||
{
|
||||
desc: "Ignore make rules",
|
||||
mkname: "product.mk",
|
||||
in: `
|
||||
foo: foo.c
|
||||
gcc -o $@ $*`,
|
||||
expected: `# MK2RBC TRANSLATION ERROR: unsupported line rule: foo: foo.c
|
||||
#gcc -o $@ $*
|
||||
# rule: foo: foo.c
|
||||
# gcc -o $@ $*
|
||||
load("//build/make/core:product_config.rbc", "rblf")
|
||||
|
||||
def init(g, handle):
|
||||
cfg = rblf.cfg(handle)
|
||||
rblf.warning("product.mk", "partially successful conversion")
|
||||
`,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user