# HG changeset patch # User ihse # Date 1523395974 -7200 # Node ID 3e9cb3562d834f8095f6b3afd5f91927e6295830 # Parent e6c069766d4624a6c9576b545acda4acc744fb73 8201320: Allow PrintFailureReports to be turned off Reviewed-by: erikj diff -r e6c069766d46 -r 3e9cb3562d83 make/Init.gmk --- a/make/Init.gmk Tue Apr 10 14:16:13 2018 -0700 +++ b/make/Init.gmk Tue Apr 10 23:32:54 2018 +0200 @@ -1,5 +1,5 @@ # -# Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -226,6 +226,15 @@ # Parse COMPARE_BUILD (for makefile development) $(eval $(call ParseCompareBuild)) + # If no LOG= was given on command line, but we have a non-standard default + # value, use that instead and re-parse log level. + ifeq ($(LOG), ) + ifneq ($(DEFAULT_LOG), ) + override LOG := $(DEFAULT_LOG) + $(eval $(call ParseLogLevel)) + endif + endif + ifeq ($(LOG_NOFILE), true) # Disable build log if LOG=[level,]nofile was given override BUILD_LOG_PIPE := diff -r e6c069766d46 -r 3e9cb3562d83 make/InitSupport.gmk --- a/make/InitSupport.gmk Tue Apr 10 14:16:13 2018 -0700 +++ b/make/InitSupport.gmk Tue Apr 10 23:32:54 2018 +0200 @@ -1,5 +1,5 @@ # -# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -131,73 +131,6 @@ endif endef - # Look for a given option in the LOG variable, and if found, set a variable - # and remove the option from the LOG variable - # $1: The option to look for - # $2: The option to set to "true" if the option is found - define ParseLogOption - ifneq ($$(findstring $1, $$(LOG)),) - $2 := true - # COMMA is defined in spec.gmk, but that is not included yet - COMMA := , - # First try to remove ",