Bug 12049 – [GDC]: Add auto-build script for easier barrier to entry for new compiler devs
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-01-31T09:39:46Z
Last change time
2018-07-11T15:57:45Z
Keywords
GDC
Assigned to
No Owner
Creator
Andrej Mitrovic
Comments
Comment #0 by andrej.mitrovich — 2014-01-31T09:39:46Z
See:
http://forum.dlang.org/thread/[email protected]?page=2#post-lcglob:24h9l:241:40digitalmars.com
Even though there might be bugs that can easily be fixed by novice compiler developers, the actual first step of building the compiler could be difficult, as numerous instructions have to be manually followed. And since the instructions are on a wiki page, the instructions could easily become out of date. Having the instructions be part of a script rather than a wiki means they can also be frequently tested, and complicated instructions (such as "use only version 1.x of tool A if you're using version 2.x of tool B) become runtime checks in the script rather than becoming awful-to-track diagnostics in some later part of a failed build process.
Such a script should take care of at least the following things:
- Grab all dependencies => And possibly avoid re-downloading dependencies if the user already went through this step
- Provide a sensible default of most configuration options => the script should be able to be run with as little amount of arguments as possible
- Build the compiler for the current platform
In other words, a new compiler dev would simply invoke the script, and regardless of how much time it takes to actually build the compiler the dev could in the meantime work on some other task (multitask).
This is significantly different to manually building, as in manual builds you have to be aware of every step you make and you typically have to wait for the terminal to unlock and let you enter each step manually.
An example of such a script is the MinGW-builds project:
https://github.com/niXman/mingw-builds