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}}"