diff options
author | Andreas Politz <politza@hochschule-trier.de> | 2017-08-20 20:17:35 +0200 |
---|---|---|
committer | Andreas Politz <politza@hochschule-trier.de> | 2017-08-20 20:17:35 +0200 |
commit | c70520068cb316f736811e922a015347fdbcd30b (patch) | |
tree | 28d4b8625dadf4cf15908cead22adffd91c72c1d | |
parent | d87c7c533785b94007f15ca73b6a600ec05af4ca (diff) |
Improves guessing the msys2 architecture
-rw-r--r-- | lisp/pdf-tools.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/pdf-tools.el b/lisp/pdf-tools.el index 86c5661..61d2d99 100644 --- a/lisp/pdf-tools.el +++ b/lisp/pdf-tools.el @@ -294,7 +294,9 @@ CALLBACK may be a function, which will be locally put on build-directory (if install-server-deps "install-server-deps " " ")) install-server-deps) - (let* ((arch (upcase (nth 2 (split-string system-configuration "-")))) + (let* ((arch (if (equal "X86_64" + (upcase (car (split-string system-configuration "-")))) + "MINGW64" "MINGW32")) (msys2-install-directory (file-name-directory (read-file-name "Path to msys2_shell.bat: ")))) (compile (format "%susr/bin/bash.exe --login -c 'MSYSTEM=%s source /etc/profile; LANG=C make V=0 -kC \"%s\" melpa-build'" |