dcbaker / meson-plus-plus

An experimental and incomplete implementation of Meson in C++, for solving Meson's bootstrapping issue.
Apache License 2.0
45 stars 7 forks source link

subdir() doesn't record the directory it's in #5

Closed dcbaker closed 3 years ago

dcbaker commented 3 years ago

When we convert the subdir() call into another tree, we need to record the directory it's in, and we don't.

dcbaker commented 3 years ago

The AST statements do have location data in them, but we don't pass that to the MIR layer. The statement data is also an absolute path, so we'll need to convert it to one relative to the source dir.