d: Use COMPILER_FOR_BUILD to build all D front-end generator programs
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 16 Jun 2019 16:12:47 +0000 (18:12 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sun, 28 Mar 2021 12:47:35 +0000 (14:47 +0200)
commitd3ae0f515d0c675d42f4f18fc267e8e75f6b6f26
tree5a25cb8f3b5060830a4d60970387f36cd29846ab
parent65c001bfaf778e83ded451f94d2a0da528758dd8
d: Use COMPILER_FOR_BUILD to build all D front-end generator programs

This means the correct config headers are included when building the
D front-end in a Canadian cross configuration.

gcc/d/ChangeLog:

* Make-lang.in (DMDGEN_COMPILE): Remove.
(d/%.dmdgen.o): Use COMPILER_FOR_BUILD and BUILD_COMPILERFLAGS to
build all D generator programs.
(D_SYSTEM_H): New macro.
(d/idgen.dmdgen.o): Add dependencies to build.
(d/impcnvgen.dmdgen.o): Likewise.
* d-system.h: Include bconfig.h if GENERATOR_FILE is defined.
gcc/d/Make-lang.in
gcc/d/d-system.h