aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Allen <[email protected]>2017-10-02 17:18:00 -0500
committerMark Allen <[email protected]>2017-10-02 17:18:00 -0500
commit6c06e60016cbf3990e6a40ab89c06fabb2635084 (patch)
tree0f5917ee68febaffe58f4c61b63f5035af52e617
parent4e4b2cbb3cfecf2faeb82442655b44bf306d1cce (diff)
downloadkerl-6c06e60016cbf3990e6a40ab89c06fabb2635084.tar.gz
kerl-6c06e60016cbf3990e6a40ab89c06fabb2635084.tar.bz2
kerl-6c06e60016cbf3990e6a40ab89c06fabb2635084.zip
Rework how the wx patch is applied
Make sure it's focused on macOS and doesn't rely on a newer perl installation to trigger.
-rwxr-xr-xkerl12
1 files changed, 6 insertions, 6 deletions
diff --git a/kerl b/kerl
index f9297e8..56c3dd7 100755
--- a/kerl
+++ b/kerl
@@ -482,12 +482,6 @@ maybe_patch_all()
15)
apply_r15_beam_makeops_patch >> "$LOGFILE"
;;
- 16)
- apply_r16_wx_ptr_patch >> "$LOGFILE"
- ;;
- 17|18|19)
- apply_wx_ptr_patch >> "$LOGFILE"
- ;;
*)
;;
esac
@@ -506,9 +500,15 @@ maybe_patch_all()
maybe_patch_darwin()
{
+ # Reminder: $1 = OTP release version
if [ "$1" -le 14 ]; then
CFLAGS="-DERTS_DO_INCL_GLB_INLINE_FUNC_DEF"
apply_darwin_compiler_patch >> "$LOGFILE"
+ elif [ "$1" -eq 16 ]; then
+ # TODO: Maybe check if clang version == 9
+ apply_r16_wx_ptr_patch >> "$LOGFILE"
+ elif [ "$1" -ge 17 -a "$1" -le 19 ]; then
+ apply_wx_ptr_patch >> "$LOGFILE"
fi
}