[Issue 18550] Offline option for dlang.org makefile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 27 00:20:43 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18550

Seb <greensunny12 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greensunny12 at gmail.com

--- Comment #2 from Seb <greensunny12 at gmail.com> ---
> The current dlang.org makefile has all sorts of bells and whistles that take up tons of time and requires network access, like downloading tarballs, cloning git repos, *compiling* old compiler releases, and so forth.

Note that:
- it's not an "old" compiler release, it's the current stable one (i.e. the
latest release)
- all binaries etc. will only be fetched once and are put in .generated, so
subsequent runs will be much faster

> Can we pretty please have an `offline` target that builds just the HTML and *nothing* else? 

Hmm, it's already there for a few releases?

HTML pages (e.g. spec)

make -f posix.mak html DIFFABLE=1

Phobos pages:

make -f posix.mak phobos-prerelease

> should not have to download gobs of stuff that's only relevant for the actual dlang.org site,

The Makefile is already setup to only download and build what's needed for your
selected target.

> Why generating HTML docs should depend on compiling a cloned remote repo escapes me.

We need to build the compiler once though because we now use DMD as a library
in a custom Ddoc preprocessor

> Not to mention, the makefile outright fails because it makes assumptions incompatible with my system,

What are those?

--


More information about the Digitalmars-d-bugs mailing list