Skip to content

Commit

Permalink
with jit but without disable-library-validation entitlement erlang …
Browse files Browse the repository at this point in the history
…starts but cannot load crypto
  • Loading branch information
wojtekmach committed Oct 4, 2021
1 parent 700bd66 commit 669ed2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -ex
git clean -dfx \
&& ./otp_build configure \
--disable-dynamic-ssl-lib \
--disable-jit \
&& make release -j8

identity="-"; \
Expand All @@ -25,4 +24,5 @@ codesign \
--timestamp \
release/*/erts-*/bin/*;

tar cz -C release/* . | ssh macbookair.local 'rm -rf otp && mkdir otp && tar xz -C otp - && cd otp && ./Install -minimal $PWD && ./bin/erl -noshell -eval "erlang:display(erlang:system_info(system_version)), ok = crypto:start(), halt()."'
arm_hostname=macbookair.local; \
tar cz -C release/* . | ssh $arm_hostname 'rm -rf otp && mkdir otp && tar xz -C otp - && cd otp && ./Install -minimal $PWD && ./bin/erl -noshell -eval "erlang:display(erlang:system_info(system_version)), ok = crypto:start(), halt()."'
14 changes: 7 additions & 7 deletions erts/etc/darwin/Entitlements.plist
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
</dict>
</plist>

0 comments on commit 669ed2d

Please sign in to comment.