mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Fix lli build problem with parallel makes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5396 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8a4baf4f55
commit
8d7dfb36c6
@ -230,7 +230,6 @@ test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
|
|||||||
|
|
||||||
%/.makeall %/.makeinstall %/.makeclean %/.maketest:
|
%/.makeall %/.makeinstall %/.makeclean %/.maketest:
|
||||||
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#---------------------------------------------------------
|
#---------------------------------------------------------
|
||||||
@ -396,19 +395,25 @@ USED_LIB_PATHS_O := $(addprefix $(LIBRELEASE)/, $(STATICUSEDLIBS))
|
|||||||
USED_LIB_PATHS_P := $(addprefix $(LIBPROFILE)/, $(STATICUSEDLIBS))
|
USED_LIB_PATHS_P := $(addprefix $(LIBPROFILE)/, $(STATICUSEDLIBS))
|
||||||
LINK_OPTS := $(TOOLLINKOPTS) $(PLATFORMLINKOPTS)
|
LINK_OPTS := $(TOOLLINKOPTS) $(PLATFORMLINKOPTS)
|
||||||
|
|
||||||
|
|
||||||
|
# Tell make that we need to rebuild subdirectories before we can link the tool.
|
||||||
|
# This affects things like LLI which has library subdirectories.
|
||||||
|
$(USED_LIB_PATHS_G) $(USED_LIB_PATHS_O) $(USED_LIB_PATHS_P): \
|
||||||
|
$(addsuffix /.makeall, $(PARALLEL_DIRS))
|
||||||
|
|
||||||
all:: $(TOOLEXENAMES)
|
all:: $(TOOLEXENAMES)
|
||||||
clean::
|
clean::
|
||||||
$(VERB) rm -f $(TOOLEXENAMES)
|
$(VERB) rm -f $(TOOLEXENAMES)
|
||||||
|
|
||||||
$(TOOLEXENAME_G): $(ObjectsG) $(USED_LIB_PATHS_G) $(BUILD_ROOT_TOP)/tools/Debug/.dir
|
$(TOOLEXENAME_G): $(ObjectsG) $(USED_LIB_PATHS_G) $(TOOLDEBUG)/.dir
|
||||||
@echo ======= Linking $(TOOLNAME) debug executable $(WARN_MSG) =======
|
@echo ======= Linking $(TOOLNAME) debug executable $(WARN_MSG) =======
|
||||||
$(VERB) $(LinkG) -o $@ $(ObjectsG) $(USED_LIBS_OPTIONS_G) $(LINK_OPTS)
|
$(VERB) $(LinkG) -o $@ $(ObjectsG) $(USED_LIBS_OPTIONS_G) $(LINK_OPTS)
|
||||||
|
|
||||||
$(TOOLEXENAME_O): $(ObjectsO) $(USED_LIB_PATHS_O) $(BUILD_ROOT_TOP)/tools/Release/.dir
|
$(TOOLEXENAME_O): $(ObjectsO) $(USED_LIB_PATHS_O) $(TOOLRELEASE)/.dir
|
||||||
@echo ======= Linking $(TOOLNAME) release executable =======
|
@echo ======= Linking $(TOOLNAME) release executable =======
|
||||||
$(VERB) $(LinkO) -o $@ $(ObjectsO) $(USED_LIBS_OPTIONS_O) $(LINK_OPTS)
|
$(VERB) $(LinkO) -o $@ $(ObjectsO) $(USED_LIBS_OPTIONS_O) $(LINK_OPTS)
|
||||||
|
|
||||||
$(TOOLEXENAME_P): $(ObjectsP) $(USED_LIB_PATHS_P) $(BUILD_ROOT_TOP)/tools/Profile/.dir
|
$(TOOLEXENAME_P): $(ObjectsP) $(USED_LIB_PATHS_P) $(TOOLPROFILE)/.dir
|
||||||
@echo ======= Linking $(TOOLNAME) profile executable =======
|
@echo ======= Linking $(TOOLNAME) profile executable =======
|
||||||
$(VERB) $(LinkP) -o $@ $(ObjectsP) $(USED_LIBS_OPTIONS_P) $(LINK_OPTS)
|
$(VERB) $(LinkP) -o $@ $(ObjectsP) $(USED_LIBS_OPTIONS_P) $(LINK_OPTS)
|
||||||
|
|
||||||
|
@ -230,7 +230,6 @@ test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
|
|||||||
|
|
||||||
%/.makeall %/.makeinstall %/.makeclean %/.maketest:
|
%/.makeall %/.makeinstall %/.makeclean %/.maketest:
|
||||||
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#---------------------------------------------------------
|
#---------------------------------------------------------
|
||||||
@ -396,19 +395,25 @@ USED_LIB_PATHS_O := $(addprefix $(LIBRELEASE)/, $(STATICUSEDLIBS))
|
|||||||
USED_LIB_PATHS_P := $(addprefix $(LIBPROFILE)/, $(STATICUSEDLIBS))
|
USED_LIB_PATHS_P := $(addprefix $(LIBPROFILE)/, $(STATICUSEDLIBS))
|
||||||
LINK_OPTS := $(TOOLLINKOPTS) $(PLATFORMLINKOPTS)
|
LINK_OPTS := $(TOOLLINKOPTS) $(PLATFORMLINKOPTS)
|
||||||
|
|
||||||
|
|
||||||
|
# Tell make that we need to rebuild subdirectories before we can link the tool.
|
||||||
|
# This affects things like LLI which has library subdirectories.
|
||||||
|
$(USED_LIB_PATHS_G) $(USED_LIB_PATHS_O) $(USED_LIB_PATHS_P): \
|
||||||
|
$(addsuffix /.makeall, $(PARALLEL_DIRS))
|
||||||
|
|
||||||
all:: $(TOOLEXENAMES)
|
all:: $(TOOLEXENAMES)
|
||||||
clean::
|
clean::
|
||||||
$(VERB) rm -f $(TOOLEXENAMES)
|
$(VERB) rm -f $(TOOLEXENAMES)
|
||||||
|
|
||||||
$(TOOLEXENAME_G): $(ObjectsG) $(USED_LIB_PATHS_G) $(BUILD_ROOT_TOP)/tools/Debug/.dir
|
$(TOOLEXENAME_G): $(ObjectsG) $(USED_LIB_PATHS_G) $(TOOLDEBUG)/.dir
|
||||||
@echo ======= Linking $(TOOLNAME) debug executable $(WARN_MSG) =======
|
@echo ======= Linking $(TOOLNAME) debug executable $(WARN_MSG) =======
|
||||||
$(VERB) $(LinkG) -o $@ $(ObjectsG) $(USED_LIBS_OPTIONS_G) $(LINK_OPTS)
|
$(VERB) $(LinkG) -o $@ $(ObjectsG) $(USED_LIBS_OPTIONS_G) $(LINK_OPTS)
|
||||||
|
|
||||||
$(TOOLEXENAME_O): $(ObjectsO) $(USED_LIB_PATHS_O) $(BUILD_ROOT_TOP)/tools/Release/.dir
|
$(TOOLEXENAME_O): $(ObjectsO) $(USED_LIB_PATHS_O) $(TOOLRELEASE)/.dir
|
||||||
@echo ======= Linking $(TOOLNAME) release executable =======
|
@echo ======= Linking $(TOOLNAME) release executable =======
|
||||||
$(VERB) $(LinkO) -o $@ $(ObjectsO) $(USED_LIBS_OPTIONS_O) $(LINK_OPTS)
|
$(VERB) $(LinkO) -o $@ $(ObjectsO) $(USED_LIBS_OPTIONS_O) $(LINK_OPTS)
|
||||||
|
|
||||||
$(TOOLEXENAME_P): $(ObjectsP) $(USED_LIB_PATHS_P) $(BUILD_ROOT_TOP)/tools/Profile/.dir
|
$(TOOLEXENAME_P): $(ObjectsP) $(USED_LIB_PATHS_P) $(TOOLPROFILE)/.dir
|
||||||
@echo ======= Linking $(TOOLNAME) profile executable =======
|
@echo ======= Linking $(TOOLNAME) profile executable =======
|
||||||
$(VERB) $(LinkP) -o $@ $(ObjectsP) $(USED_LIBS_OPTIONS_P) $(LINK_OPTS)
|
$(VERB) $(LinkP) -o $@ $(ObjectsP) $(USED_LIBS_OPTIONS_P) $(LINK_OPTS)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user