Opened 2 years ago
#9521 assigned defect
"make install" for a bundle on Windows very slow
Reported by: | Tom Goddard | Owned by: | Greg Couch |
---|---|---|---|
Priority: | moderate | Milestone: | |
Component: | Build System | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
If I do "make install" in the vive bundle directory on Windows (vive.cgl.ucsf.edu) it takes about 25 seconds, of which 21 seconds it has not output anything. If I to do makes in fast succession (< 10 seconds apart) then it takes just couple seconds.
I tracked this down to being a cygwin make problem caused by these lines in our Makefile.bundle
ifeq (,$(wildcard /app)) CHIMERAX_APP = $(wildcard $(TOP)/ChimeraX*.app) else CHIMERAX_APP = $(wildcard /app) endif
In fact with cygwin make the following Makefile takes 21 seconds to do a make clean
ifeq (,$(wildcard /app)) endif clean: echo cleaned
I tried updating cygwin and the problem persists.
Not sure why we are testing if /app exists. Also is there an idiom to do that without $(wildcard)? That seems like overkill for checking if a directory exists.
For now I comment out that check for /app and my "make install" being done 100 times a day developing VR code has now saved me an hour!