[build2] Variables in nested config.build
Boris Kolpackov
boris at codesynthesis.com
Wed Jan 3 15:25:01 UTC 2018
Ankur deDev <ankur.dedev at tuta.io> writes:
> bld/
> └── confa
> ├── build
> │ ├── bootstrap.build
> │ ├── config.build
> │ └── root.build
> ├── confa1
> │ └── build
> │ ├── bootstrap.build
> │ └── config.build
> └── confa2
> └── build
> ├── bootstrap.build
> └── config.build
>
> bootstrap.build containing 'amalgamation = ../' for confa1 and confa2.
>
> For example, if I set the config.build like this:
> - confa/build/config.build contains 'test_var += "VAR-A"'
> - confa/confa1/build/config.build contains 'test_var += "VAR-A1"'
> - confa/confa1/build/config.build contains 'test_var += "VAR-A2"'
>
> Then, running "b '{update}(./hlo at bld/confa/{*/ -build/})' --verbose 6",
> I get "test_var=VAR-A1" for confa1 and "test_var=VAR-A VAR-A2" for confa2
> [...]
Strange, I would expect this to work the way you are expecting. Can you
add:
print $test_var
To each config.build and see what's printed? If it still doesn't look
right, can you provide a .tar.gz of bld/ so I can take a look?
Boris
More information about the users
mailing list