Skip to content

Commit

Permalink
8325972: Add -x to bash for building with LOG=debug
Browse files Browse the repository at this point in the history
Backport-of: 8668198c26bdac412f0a9d1255ca74da860761c5
  • Loading branch information
Andrew Lu committed Mar 7, 2024
1 parent b425dff commit f3069d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion make/common/MakeBase.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2011, 2024, 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
Expand Down Expand Up @@ -153,6 +153,10 @@ define SetupLogging
endif
endif

ifneq ($$(findstring $$(LOG_LEVEL), debug trace),)
SHELL := $$(SHELL) -x
endif

ifeq ($$(LOG_LEVEL), trace)
SHELL_NO_RECURSE := $$(SHELL)
# Shell redefinition trick inspired by http://www.cmcrossroads.com/ask-mr-make/6535-tracing-rule-execution-in-gnu-make
Expand Down

1 comment on commit f3069d1

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.