Skip to content

Commit

Permalink
wmkdep: Simplified file scanning for dependencies avoiding too many o…
Browse files Browse the repository at this point in the history
…pen files

This change ensures only one include file is open at a time by storing the
included files on a dynamic list rather than scanning the tree and holding a
list of open buffers.  This new approach is a bit faster and avoids the "too
many open files" error on machines with low limits on the number of file
descriptors allocated to users.
  • Loading branch information
Henry Weller committed May 1, 2018
1 parent 35c3c81 commit 9ffc025
Show file tree
Hide file tree
Showing 3 changed files with 736 additions and 236 deletions.
3 changes: 2 additions & 1 deletion wmake/rules/General/transform
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ $(OBJECTS_DIR)/%.dep : %
$(call VERBOSE_MESSAGE,Making dependency list for source file,$(<F))
@$(WM_SCRIPTS)/makeTargetDir $@
@$(WMAKE_BIN)/wmkdep \
-R '$(OBJECTS_DIR)/' '$$(OBJECTS_DIR)/' \
-R '$(WM_PROJECT_DIR)/' '$$(WM_PROJECT_DIR)/' \
-R '$(WM_THIRD_PARTY_DIR)/' '$$(WM_THIRD_PARTY_DIR)/' \
-I$(*D) $(LIB_HEADER_DIRS) $< > $@
-I$(*D) $(LIB_HEADER_DIRS) $< $@

#------------------------------------------------------------------------------
Loading

0 comments on commit 9ffc025

Please sign in to comment.