[Issue 8858] DMD's -v option doesn't output dependencies with imports inside functions
https://issues.dlang.org/show_bug.cgi?id=8858 --- Comment #5 from Jonathan Marler --- This PR (https://github.com/dlang/dmd/pull/7400) adds the "-deps-" option to dmd so that it will analyze dependencies without printing them. This will allow rdmd to get the imports via "-v" without adding extra work to create the dependency file or print them to stderr. This PR will add the "-deps-" option when rdmd calls dmd (https://github.com/dlang/tools/pull/268). --
[Issue 8858] DMD's -v option doesn't output dependencies with imports inside functions
https://issues.dlang.org/show_bug.cgi?id=8858 Jonathan Marler changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|--- |INVALID --
[Issue 8858] DMD's -v option doesn't output dependencies with imports inside functions
https://issues.dlang.org/show_bug.cgi?id=8858 Jonathan Marler changed: What|Removed |Added CC||johnnymar...@gmail.com --- Comment #4 from Jonathan Marler --- >From what I understand, getting all dependencies for a module requires more overhead than it takes to just compile the file. Compiling a single file only requires loading the imports that the file references directly, the compiler also loads indirect imports so long as they are global, but it isn't required to do this. That leaves local imports inside other imports to go unnocited. To force the compiler to load all the imports even when it just needs to compile a single file would have a bad performance impact, therefore, it makes sense to make this an option to be passed to the compiler. This command line option "-deps" already exists and already signals the compiler to load all the modules. Given this, I would mark this as "not a bug" saying that if you need to get all the imports you should include the "-deps" flag to the compiler. --
[Issue 8858] DMD's -v option doesn't output dependencies with imports inside functions
https://issues.dlang.org/show_bug.cgi?id=8858 --- Comment #3 from Timothee Cour --- *** Issue 8856 has been marked as a duplicate of this issue. *** --
[Issue 8858] DMD's -v option doesn't output dependencies with imports inside functions
https://issues.dlang.org/show_bug.cgi?id=8858 Timothee Cour changed: What|Removed |Added Status|RESOLVED|REOPENED CC||timothee.co...@gmail.com Resolution|DUPLICATE |--- --- Comment #2 from Timothee Cour --- Re-opening since https://issues.dlang.org/show_bug.cgi?id=7016 dealt with -deps (cf title) whereas this issue deals with -v; 7016 has been fixed but this issue is still there as of DMD64 D Compiler v2.077.0. This bug also affects rdmd, which is based on -v : rdmd does not use -deps output - it uses -v (because -v includes more information); see also https://www.bountysource.com/issues/44926161-fix-issue-7016-local-import-does-not-create-deps-dependency a.d : import b; void main() { f(); } b.d : int f() { import c; return i; } c.d : int i = 42; dmd -v -o- a.d predefs DigitalMars Posix OSX darwin LittleEndian D_Version2 all D_SIMD D_InlineAsm_X86_64 X86_64 D_LP64 D_PIC assert D_HardFloat binarydmd version v2.077.0 config/Users/timothee/homebrew/etc/dmd.conf parse a importall a importobject (/Users/timothee/homebrew/opt/dmd/include/dlang/dmd/object.d) importcore.attribute (/Users/timothee/homebrew/opt/dmd/include/dlang/dmd/core/attribute.d) importb (b.d) semantic a entry main a.d semantic2 a semantic3 a --
[Issue 8858] DMD's -v option doesn't output dependencies with imports inside functions
http://d.puremagic.com/issues/show_bug.cgi?id=8858 Andrej Mitrovic changed: What|Removed |Added Status|NEW |RESOLVED CC||andrej.mitrov...@gmail.com Resolution||DUPLICATE --- Comment #1 from Andrej Mitrovic 2013-01-11 19:14:58 PST --- Caused by same issue as in 7016. *** This issue has been marked as a duplicate of issue 7016 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---