Skip to content

Building the compiler is a mess #97

@GrimMaple

Description

@GrimMaple

I've been trying to get into workin on the actual compiler, but I keep having issues while trying to make it even build to begin with.
There are a few things I would like to point out and discuss so maybe they can get fixed in some near future. I might PR some things as I go by.

  • The build is inconsistent. For example, building on windows (with build.d from compiler/src folder) outputs to both debug and release folders in generated folder, while building on Linux with make -j4 outputs to release only -- even if it's a debug build.

  • make -j4 failed to build phobos on my Manjaro installation. I used upstream's dmd 2.111, and it failed to build with errors regarding to some glib C header (while compiling zlib)

  • Getting a windows debug build reliably is a hussle, I don't remember now if installing gnu make helps, but I wish we didn't need that at all (especially since we can just run .d code and have a very easy way to build things)

  • dub build for druntime fails on windows. It should either be fixed, either removed if not intended to be supported. Same goes for phobos, btw.

So currently, I struggle to get a debug build of dmd on my Windows machine. Any input would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions