> From: Xiang Xiao [mailto:[email protected]]
> Could you try the method I said before? Immediate make variable could
> avoid invoke the shell script at every reference location which is some form
> of cache inside make instead of incdir.sh.
It's
real 22m50,526s
user 1m37,024s
sys 4m25,220s
with
ARCHINCLUDES := ${shell $(INCDIR) -s "$(CC)" $(TOPDIR)$(DELIM)include}
ARCHXXINCLUDES := ${shell $(INCDIR) -s "$(CC)" $(TOPDIR)$(DELIM)include}
ARCHXXINCLUDES += ${shell $(INCDIR) -s "$(CC)"
$(TOPDIR)$(DELIM)include$(DELIM)cxx}
in nuttx/Make.defs.
So it's faster (23min < 36min) but still far away from 4-5min it used to be.
> From: Gregory Nutt [mailto:[email protected]]
> Another, probably better solution, would be to re-write incdir.sh in C.
I must admit I thought about that idea also, but I wasn't sure about the
portability issue.
You could also think about a autogenerated Make.defs during configure with then
hard coded include paths which should be the fastest possibility.
Since Make.defs is already copied, perhaps it could also be modified on the fly.
Johannes