By hardcoding 
os=Msys
gcc=arm-none-eabi-gcc
exefile=arm-none-eabi-gcc
inside incdir.sh
time tools/incdir.sh -s arm-none-eabi-gcc/home/Schock/nuttx/nuttx/include
reduced from 180ms to 40ms.

Overall, this reduced build time from 30min to an acceptable 6min.
So incdir.sh is taking too much time in MSYS2

Isn't there a possibility to cache the results of the system checks inside 
incdir.sh?

Regards, Johannes


> -----Original Message-----
> From: Schock, Johannes - NIVUS GmbH
> [mailto:johannes.sch...@nivus.com]
> Sent: Friday, May 29, 2020 3:14 PM
> To: dev@nuttx.apache.org
> Subject: RE: MSYS2 build slow
> 
> Would please someone do the following command on Linux and Cygwin?
> 
> time tools/incdir.sh -s arm-none-eabi-gcc
> /home/Schock/nuttx/nuttx/include
> 
> (Replace the path with your NuttX path.)
> 
> For MSYS2 it's in the range of:
> 
> real    0m0,189s
> user    0m0,061s
> sys     0m0,045s
> 
> Thanks, Johannes
> 
> > From: Gregory Nutt [mailto:spudan...@gmail.com]
> > Okay, so only MSYS2 is seeing a dramatic change. That is a mystery.

Reply via email to