Skip to contentSkip to conversation

meson: build macOS signed binary as part of the default target

PATCH In review Emmanuel Blot 2 participants 2 messages Jun 9 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: build macOS signed binary as part of the default target

---
Toolchain on macOS hosts generates unsigned binaries, named with a -unsigned suffix.

The default target does not generate a signed version.

This patch adds the custom target that generates the signed version to the build by default target list, only for macOS hosts.

---
 meson.build | 1 +
 1 file changed, 1 insertion(+)
meson.build +1 -0
index 19e123423b..e026851309 100644
@@ -4453,6 +4453,7 @@ foreach target : target_dirs
       emulators += {exe['name'] : custom_target(exe['name'],
                    input: build_input,
                    output: exe['name'],
+                   build_by_default: true,
                    command: [entitlement, '@OUTPUT@', '@INPUT@'])
       }
 

---
base-commit: cc329c491768b2d91eb0b0984f3baa0bf805776d
change-id: 20260609-macos-default-signed-bin-a75612cf7a85

Best regards,

Signature · 1 line
Emmanuel Blot <[email protected]>
Tested-by Reviewed-by on v1 1/1
#1 lore raw
Quoted 30 lines · Emmanuel Blot

---
Toolchain on macOS hosts generates unsigned binaries, named with a -unsigned suffix.

The default target does not generate a signed version.

This patch adds the custom target that generates the signed version to the build by default target list, only for macOS hosts.

---
 meson.build | 1 +
 1 file changed, 1 insertion(+)
meson.build +1 -1
index 19e123423b..e026851309 100644
@@ -4453,6 +4453,7 @@ foreach target : target_dirs
       emulators += {exe['name'] : custom_target(exe['name'],
                    input: build_input,
                    output: exe['name'],
+                   build_by_default: true,
                    command: [entitlement, '@OUTPUT@', '@INPUT@'])
       }
 
 
---

base-commit: cc329c491768b2d91eb0b0984f3baa0bf805776d
change-id: 20260609-macos-default-signed-bin-a75612cf7a85

Quoted 4 lines

Best regards,

Signature · 1 line
Emmanuel Blot <[email protected]>

Congrats on finding this one! That's the right fix.

I looked around this area and totally missed the fact it was a custom_target instead of an executable, and since it's never used as a dependency, it has no reason to be built by default.

Regards,
Pierrick