Changeset 45457


Ignore:
Timestamp:
2015-04-16T14:18:26+02:00 (3 years ago)
Author:
nbd
Message:

build: tell users to do non-paralle builds on errors

Signed-off-by: Felix Fietkau <nbd@…>

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/toplevel.mk

    r45127 r45457  
    167167        @+$(NO_TRACE_MAKE) -r -s $@ 
    168168 
     169WARN_PARALLEL_ERROR = $(if $(BUILD_LOG),,$(and $(filter -j,$(MAKEFLAGS)),$(findstring s,$(OPENWRT_VERBOSE)))) 
     170 
    169171ifeq ($(SDK),1) 
    170172 
     
    185187                fi \ 
    186188        ) 
    187         @+$(ULIMIT_FIX) $(SUBMAKE) -r $@ 
     189        @+$(ULIMIT_FIX) $(SUBMAKE) -r $@ $(if $(WARN_PARALLEL_ERROR), || { \ 
     190                printf "$(_R)Build failed - please re-run with -j1 to see the real error message$(_N)\n" >&2; \ 
     191                false; \ 
     192        } ) 
    188193 
    189194endif 
  • trunk/include/verbose.mk

    r45127 r45457  
    5555    SILENT:=>/dev/null $(if $(findstring w,$(OPENWRT_VERBOSE)),,2>&1) 
    5656    export QUIET:=1 
    57     SUBMAKE=cmd() { $(SILENT) $(MAKE) -s $$* < /dev/null || { echo "make $$*: build failed. Please re-run make with V=s to see what's going on"; false; } } 8>&1 9>&2; cmd 
     57    SUBMAKE=cmd() { $(SILENT) $(MAKE) -s $$* < /dev/null || { echo "make $$*: build failed. Please re-run make with -j1 V=s to see what's going on"; false; } } 8>&1 9>&2; cmd 
    5858  endif 
    5959 
Note: See TracChangeset for help on using the changeset viewer.