ballerina-platform / nballerina

Ballerina compiler that generates native executables.
https://ballerina.io/
Apache License 2.0
138 stars 46 forks source link

Base directory for debug info is output directory #761

Open jclark opened 2 years ago

jclark commented 2 years ago

We need to deal with the fact that in the debug info, the base directory used to interpret relative directories will be the output directory, rather than the current directory at the time of compilation.

BIR locations are used both for debug information and for error messages (in verify). The base directory for each use case is different.

We also don't want absolutize directories in LL files, because we are checking in LL files.

jclark commented 2 years ago

But with #812, BIR verification may be optional, which makes dual use less of an issue. (If you want to verify the BIR, we could generate it with source directory not output.)