September 15, 2018 Getting started with separate compilation | ||||
---|---|---|---|---|
| ||||
My project [1] has enough language coverage to expose two issues that break compilation. 1. Stack overflow in ddmd/dtemplate.d:6241, TemplateInstance::needsCodegen(); https://issues.dlang.org/show_bug.cgi?id=18026 2. -allinst gives undefined reference linker errors; https://issues.dlang.org/show_bug.cgi?id=19123 It's also of a size large enough that the memory needed to compile makes CircleCI kill the process. Locally I generally need to close my browsers to be able to build. I'd throw money at all these three problems if I knew it would help. #dbugfix :c Everything speaks for abandoning dub and moving ahead with something with which I can separately compile parts of the program for less memory, and use -allinst on key files to avoid issue 1 without triggering issue 2. --build-mode=singleFile exists, but I don't see anything in dub that would let me apply -allinst on a per-file basis. Are there any guides on where to get started with this? Any protips? Can dub still be used to some extent? [1]: https://github.com/zorael/kameloso |
Copyright © 1999-2021 by the D Language Foundation