gentoo / dlang

[MIRROR] D programming language ebuild repository
https://gitweb.gentoo.org/repo/user/dlang.git
GNU General Public License v2.0
30 stars 23 forks source link

dmd.eclass: specify compiler path when selfhosting #121

Closed the-horo closed 1 year ago

the-horo commented 1 year ago

dlang_compile_bin uses the DC variable to compile the source files. Since we're selfhosting we have to tell it the path of the compiler otherwise it will be left with a useless value, in this case dmd, hiding the bug when the dmd package was installed on the system.

I am not sure if the path should be relative or absolute, $DMD currently is: linux/bin64/dmd. Perhaps DC=${S}/${DMD} would be better.

mleise commented 1 year ago

Absolute paths are preferable, but it's only the current working directory that affects relative paths and that should be under control.