Jump to page: 1 24  
Page
Thread overview
[Issue 13517] Only touch .di generated file if changed
Sep 21, 2014
Ketmar Dark
Sep 21, 2014
Vladimir Panteleev
Sep 21, 2014
Ketmar Dark
Sep 21, 2014
Walter Bright
Sep 21, 2014
Walter Bright
Sep 21, 2014
Ketmar Dark
Sep 21, 2014
Ketmar Dark
Sep 22, 2014
Ketmar Dark
Sep 22, 2014
Ketmar Dark
Sep 22, 2014
Ketmar Dark
Sep 22, 2014
Ketmar Dark
Sep 23, 2014
Ketmar Dark
Dec 17, 2022
Iain Buclaw
September 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13517

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |preapproved

--
September 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13517

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--- Comment #1 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
but why compiler should do that? it's a build tool task. the build tool should know that .di file is generated from .d and invoke generator only if .di file is missing or older than .d.

--
September 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13517

--- Comment #2 from Andrei Alexandrescu <andrei@erdani.com> ---
Hoisting the approach in the compiler will make it easier for people using build tools.

--
September 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13517

--- Comment #3 from Vladimir Panteleev <thecybershadow@gmail.com> ---
(In reply to Ketmar Dark from comment #1)
> but why compiler should do that? it's a build tool task. the build tool should know that .di file is generated from .d and invoke generator only if .di file is missing or older than .d.

That idea only applies if you want to do .di generation as a separate compiler invocation from compilation.

--
September 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13517

--- Comment #4 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
(In reply to Vladimir Panteleev from comment #3)
> That idea only applies if you want to do .di generation as a separate compiler invocation from compilation.
and why you wouldn't, having the build tool? speed gain is neglible, and compiler gains new useless code.

--
September 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13517

--- Comment #5 from Andrei Alexandrescu <andrei@erdani.com> ---
Again: hoisting this into the compiler lowers the barrier of entry and simplifies the life of anyone building D code with .di files.

--
September 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13517

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com
           Hardware|x86                         |All
                 OS|Mac OS X                    |All

--
September 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13517

--- Comment #6 from Walter Bright <bugzilla@digitalmars.com> ---
The generated object file isn't compared against the existing one, why should other generated files? It seems strange to me to make the .di generation special in this way.

--
September 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13517

--- Comment #7 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
(In reply to Andrei Alexandrescu from comment #5)
> Again: hoisting this into the compiler lowers the barrier of entry and simplifies the life of anyone building D code with .di files.
again: no, it's not.

--
September 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13517

--- Comment #8 from Andrei Alexandrescu <andrei@erdani.com> ---
(In reply to Walter Bright from comment #6)
> The generated object file isn't compared against the existing one, why should other generated files? It seems strange to me to make the .di generation special in this way.

Thanks for asking. The difference here is that only the linked binary depends on the .o file, whereas a lot more build artifacts depend on the .di file.

--
« First   ‹ Prev
1 2 3 4