From 526c9fcfb49e28cdf1ec02d435218e5f41c4c9aa Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Sun, 23 Jan 2022 16:40:09 -0600 Subject: [PATCH] jam/build: Solve infinite recursion on host-only tools; fixes #17546 * We should likely check for Jamfile recursion in jam instead of segfaulting Change-Id: I19ed771b0e943504e11bd6182adc81a0ea2668e8 --- build/jam/BuildSetup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index 284f614032..56e7408e22 100644 --- a/build/jam/BuildSetup +++ b/build/jam/BuildSetup @@ -555,8 +555,10 @@ SetPlatformCompatibilityFlagVariables TARGET_PLATFORM : TARGET : target ; # Haiku architecture is undefined on host-only builds # set here to host arch to prevent recusive loops. if $(HAIKU_HOST_BUILD_ONLY) = 1 { + Echo "Host tools build for $(HOST_ARCH)" ; HAIKU_ARCH = $(HOST_ARCH) ; HAIKU_KERNEL_ARCH = $(HOST_ARCH) ; + HAIKU_KERNEL_ARCH_DIR = $(HAIKU_KERNEL_ARCH) ; } # Set TARGET_* variables either from HAIKU_* or HOST_* depending on the