-
Notifications
You must be signed in to change notification settings - Fork 26
Allow source files and summaries to come from anywhere #612
Comments
I'd appreciate it, yeah! |
@nex3 The build root and module root affect the generated code - the library names and module names in the generated code. But those could point elsewhere. E.g.,
Is that sufficient or are you compiling multiple Dart sources from different directories in the same compile command? If the latter, we could allow these to be a list of paths instead. E.g., something like:
|
I am, yeah—and in general it seems like this is a thing we should support.
This would work (although colon-separated reads weird to me; I'd prefer comma-separated or just being able to pass multiple How would this work if multiple sources had the same paths relative to their respective roots? |
Yeah, using comma's elsewhere already.
It could take the first match it finds (in the listed order a la PATH). Or the tightest match I suppose. |
In #619, I wrote up a description of what my preferred replacement for |
This issue was moved to dart-lang/sdk#27264 |
Currently, all source files and module summaries must be within the build root and module root, respectively. This seems like an unnecessary limitation, and it's contrary to how other Dart implementations work.
This is blocking dart-lang/test#414. The test runner needs to synthesize an entrypoint in a temp directory, which isn't in the default build or module root. We can't even use the filesystem root, because on Windows the temp directory may be on a different drive than the Dart sources.
The text was updated successfully, but these errors were encountered: