From 19dca48b596e2fa6afc43482d7c37765a08b79d3 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Sat, 14 Jan 2023 20:43:40 -0500 Subject: [PATCH] weird --- projects/ziglang.org/package.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/projects/ziglang.org/package.yml b/projects/ziglang.org/package.yml index b9fb78e836..eee703b780 100644 --- a/projects/ziglang.org/package.yml +++ b/projects/ziglang.org/package.yml @@ -6,7 +6,6 @@ versions: github: ziglang/zig/tags build: - cores: 8 dependencies: cmake.org: '>=2.8.12' llvm.org: ^15 # v0.10.0 @@ -22,6 +21,16 @@ build: cd build cmake .. $ARGS make install + + # codesign -v --sign - --force --preserve-metadata=entitlements,requirements,flags,runtime /opt/ziglang.org/v0.10.0/bin/zig + # /Applications/Xcode_13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: fatal error: file not in an order that can be processed (function starts data out of place): /opt/ziglang.org/v0.10.0/bin/zig + # /opt/ziglang.org/v0.10.0/bin/zig: the codesign_allocate helper tool cannot be found or used + + if test "{{hw.platform}}/{{hw.arch}}" = "darwin/x86-64"; then + command -v sudo && SUDO=sudo + $SUDO xcode-select -s /Library/Developer/CommandLineTools + codesign -v --sign - --force --preserve-metadata=entitlements,requirements,flags,runtime {{prefix}}/bin/zig + fi env: ARGS: - -DCMAKE_INSTALL_PREFIX="{{prefix}}"