Better Soong namespace support in the RBC runtime.

Includes:
* Defining namespace again should have no effect
* Allow appending to a variable defined in a namespace
* Consistent naming
* Print namespace variable assignments even if they are empty

Bug: 200297238
Test: rbcrun make/build/tests/run.rbc
Change-Id: I64aa22c4498ae89e4bc3a077d6206ad37d5c7c38
This commit is contained in:
Sasha Smundak
2021-09-17 15:27:37 -07:00
parent da2f56ebe4
commit dc154164db
4 changed files with 38 additions and 23 deletions

View File

@@ -80,7 +80,7 @@ ns = globals["$SOONG_CONFIG_NAMESPACES"]
assert_eq(
{
"NS1": {
"v1": "abc",
"v1": "abc abc_part1",
"v2": "def"
},
"NS2": {