diff options
author | Mark Allen <[email protected]> | 2017-10-02 17:18:00 -0500 |
---|---|---|
committer | Mark Allen <[email protected]> | 2017-10-02 17:18:00 -0500 |
commit | 6c06e60016cbf3990e6a40ab89c06fabb2635084 (patch) | |
tree | 0f5917ee68febaffe58f4c61b63f5035af52e617 | |
parent | 4e4b2cbb3cfecf2faeb82442655b44bf306d1cce (diff) | |
download | kerl-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-x | kerl | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 } |