Replace $(call my-dir) with a string literal
This is so that we can set LOCAL_PATH to the result of my-dir, as LOCAL_PATH can only be set to a string literal of the exact value of LOCAL_PATH. It's probably also the correct choice to start phasing out LOCAL_PATH. Bug: 214405650 Test: go test Change-Id: Ia97d7fedf4ce62643921d90a176e65edd4e2fce6
This commit is contained in:
@@ -1451,6 +1451,19 @@ def init(g, handle):
|
||||
rblf.mk2rbc_error("product.mk:19", "type_hint annotations must come before the first Makefile statement")
|
||||
g["MY_VAR_4"] = "foo"
|
||||
_my_local_var_with_dashes = ["foo"]
|
||||
`,
|
||||
},
|
||||
{
|
||||
desc: "Set LOCAL_PATH to my-dir",
|
||||
mkname: "product.mk",
|
||||
in: `
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
`,
|
||||
expected: `load("//build/make/core:product_config.rbc", "rblf")
|
||||
|
||||
def init(g, handle):
|
||||
cfg = rblf.cfg(handle)
|
||||
|
||||
`,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user