From ca73ab7202877acefd97289f3d28e7c025e36b9d Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 27 Jun 2021 02:27:24 +0100 Subject: [PATCH] fix(native_comp): symlink creation was missing a conditional check Latest commits to master as of June 26, 2021 have moved *.eln files back to: MacOS/lib/emacs/**/native-lisp Even though the symlinks are most likely no longer needed, I don't know of an easy way to determine if they're required or not, so for now, they'll be created to ensure older native-comp branch SHAs can still be built. --- build-emacs-for-macos | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-emacs-for-macos b/build-emacs-for-macos index 241e688..803097d 100755 --- a/build-emacs-for-macos +++ b/build-emacs-for-macos @@ -420,7 +420,10 @@ class Build source = Dir['MacOS/libexec/emacs/**/eln-cache', 'MacOS/lib/emacs/**/native-lisp'].first - err 'Failed to find native-lisp cache directory for symlink creation.' + + if source.nil? + err 'Failed to find native-lisp cache directory for symlink creation.' + end target = File.basename(source) FileUtils.ln_s(source, target) unless File.exist?(target)