When I run a project build of an Ada project (gpr) on windows using gprbuild (whether in GNAT GPL or cygwin), it is very slow. Even a simple project compilation takes minutes. The same project compilation under Linux takes a few seconds. Is there a way to speed compilation up under Windows?
2
votes
1 Answers
4
votes
My experience is that compilation time is similar. However, I have noticed with updates to my antivirus on Windows this last year, that it now scans each and every program before allowing it to run. This slowed down my compilation drastically. I had to go into my antivirus and whitelist all the GNAT programs (gnatmake, gprconfig, etc.) or each step took several seconds.
It might be something to look at. With everything whitelisted, compilation time is about the same using GNAT GPL 2016, GNAT GPL 2017, and GNAT FSF 7.2 on mingw64 on windows and using the OS supplied GNAT on linux
project Hello is for Source_Dirs use ("src"); for Object_Dir use "obj"; for Main use ("hello.adb"); for Exec_Dir use "./"; end Hello;
– NeoSer