www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - ldc-build-runtime requires nmake in Windows

reply IGotD- <nise nise.com> writes:
I'm trying to build the runtime but ldc-build-runtime complains 
about nmake is missing


-- Detecting C compiler ABI info
CMake Error: Generator: execution of make failed. Make command 
was: "nmake" "/NOLOGO" "cmTC_4f748\fast"
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
CMake Error: Generator: execution of make failed. Make command 
was: "nmake" "/NOLOGO" "cmTC_1d99c\fast"
-- Detecting C compile features - failed

Is it that if ldc-build-runtime is being run on a Windows machine 
it wants nmake instead of make? What If I want to run make on a 
Windows machine?
Feb 24 2020
parent reply kinke <noone nowhere.com> writes:
You can use Ninja with `--ninja` in the ldc-build-runtime, though 
GNU make should work too. See 
https://wiki.dlang.org/Building_LDC_runtime_libraries.
Feb 24 2020
parent reply IGotD- <nise nise.com> writes:
On Monday, 24 February 2020 at 22:19:09 UTC, kinke wrote:
 You can use Ninja with `--ninja` in the ldc-build-runtime, 
 though GNU make should work too. See 
 https://wiki.dlang.org/Building_LDC_runtime_libraries.
Are there any parameters that can set make instead of nmake. In practice ldc-build-runtime uses CMake and there should be a switch should be added so that you can choose any generator system you want. Bascially the -G switch in CMake.
Feb 24 2020
parent kinke <noone nowhere.com> writes:
On Monday, 24 February 2020 at 22:25:04 UTC, IGotD- wrote:
 Are there any parameters that can set make instead of nmake. In 
 practice ldc-build-runtime uses CMake and there should be a 
 switch should be added so that you can choose any generator 
 system you want. Bascially the -G switch in CMake.
You can set arbitrary CMake variables, but no extra cmdline options. It uses the default CMake generator without `--ninja`, so I guess it depends on your PATH and whatever it finds in there in some order. If you need advanced CMake functionality, just execute it yourself (encouraged anyway if you plan to work on druntime and rebuilding countless times), the few cmdlines automated by ldc-build-runtime are printed out. Or submit a patch for the little tool if you really want to see the feature in there. There are or have been concurrency issues with GNU make though, so I'd recommend Ninja anyway.
Feb 24 2020