From e4fb242f389af6d589fa5d5296508a0f1659894d Mon Sep 17 00:00:00 2001
From: Nikolay Savichev <n.savitchev@gaijin.ru>
Date: Mon, 9 Dec 2024 13:41:52 +0300
Subject: [PATCH] jBuild: added ForceSignTarget_$(Platform) support for macOS
 build

to allow signing not only release binaries but dev too;
---
 prog/_jBuild/macOS/bundle.jam | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/prog/_jBuild/macOS/bundle.jam b/prog/_jBuild/macOS/bundle.jam
index 767b75370..2af72f00f 100644
--- a/prog/_jBuild/macOS/bundle.jam
+++ b/prog/_jBuild/macOS/bundle.jam
@@ -90,7 +90,8 @@ rule SignPackageRule
   Depends $(SignTarget) : $(OutDir)/$(Target) ;
   for t in $(CopyTo) { Depends $(t)/$(Target:G=:D=) : $(SignTarget) ; }
   Depends all : $(SignTarget) ;
-  if $(Config) = rel && $(SignatureOpt) {
+  if $(ForceSignTarget_$(Platform)) = yes && ! $(SignatureOpt) { echo SignatureOpt not set when ForceSignTarget_$(Platform)=yes ; }
+  if ( $(Config) = rel || $(ForceSignTarget_$(Platform)) = yes ) && $(SignatureOpt) {
     dir on $(SignTarget) = $(OutDir)/../.. ;
     opt on $(SignTarget) = $(SignatureOpt) ;
     libs on $(SignTarget) =