You can run ./build-toolchain.sh
on your local machine, or pull the docker image jmeeuws/esp-dlang
to get the toolchain.
The build scripts in the example projects will automatically try to pull the docker image if the toolchain wasn't installed locally.
Also see https://wiki.dlang.org/D_on_esp32/esp8266(llvm-xtensa%2Bldc)_and_how_to_get_started.