-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Allow source files and summaries to come from anywhere #27264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From @jmesserly on July 28, 2016 4:55 @vsmenon - would you mind taking this one? I think you're likely most familiar with the "build root" "module root" options. @nex3 - if this is blocking, does marking it P1 sound right to you? |
@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:
|
From @nex3 on July 29, 2016 0:44
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. |
I'm closing this in favor of #27262, which seems to be a popular solution. |
From @nex3 on July 28, 2016 0:36
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.
Copied from original issue: dart-archive/dev_compiler#612
The text was updated successfully, but these errors were encountered: