config_host.mk.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 51a970b8b0c8f8d5e8d33cd50c88930be3a653d8
Author:     Christian Lohmaier <[email protected]>
AuthorDate: Wed May 8 14:35:11 2024 +0200
Commit:     Christian Lohmaier <[email protected]>
CommitDate: Fri May 10 18:21:55 2024 +0200

    make sure KEEP_AWAKE_CMD gets only evaluated once
    
    if using deferred evaluation then the creation of targets via $(call
    gb_Top_GbuildModuleRules,foo) would result in it getting processed over
    900 times, and on windows spawning a shell with the two ps and awk
    command that takes 5 minutes.
    
    If future commands need to be run when the rule is run, then an
    alternative is to escape the variable in the define for the
    gb_Top_GbuildModuleRules macro via double-$ → $$(KEEP_AWAKE_CMD) - but I
    cannot think of any method where that should be necessary
    
    Change-Id: I126e4d317bd77f359ca9f39adf00cc88846af281
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167351
    Tested-by: Jenkins
    Reviewed-by: Christian Lohmaier <[email protected]>

diff --git a/config_host.mk.in b/config_host.mk.in
index 3ffe88380180..fe1fb546a6d1 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -790,7 +790,7 @@ include $(BUILDDIR)/config_$(gb_Side)_lang.mk
 # does use some of the variables defined above
 include @SRC_ROOT@/download.lst
 
-KEEP_AWAKE_CMD=@KEEP_AWAKE_CMD@
+KEEP_AWAKE_CMD:=@KEEP_AWAKE_CMD@
 
 # used for WSL-as-helper-builds where the build runs from within git-bash/MSYS 
that otherwise would
 # mess with anything that looks like a path (starts with a /) but cannot be 
resolved to a target

Reply via email to