From c51cfe6d2c6ecefcef63c1fe880062d9dcd959af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemia=20=28Scylla=29?= Date: Thu, 27 Dec 2018 10:57:33 +0100 Subject: [PATCH] Fixed detection of x13 binary on macOS. --- src/+dseries/initialize.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/+dseries/initialize.m b/src/+dseries/initialize.m index b751b13..be8a58e 100644 --- a/src/+dseries/initialize.m +++ b/src/+dseries/initialize.m @@ -20,13 +20,13 @@ dseries_src_root = strrep(which('dseries.initialize'),'+dseries/initialize.m','' % Check that the x13 binary is available nox13 = false; -if isunix() - [status, ~] = system('which x13as'); - if status && ~(exist([dseries_src_root '../externals/x13/linux/64/x13as'], 'file') && exist([dseries_src_root '../externals/x13/linux/32/x13as'], 'file')) +if ismac() + if ~exist([dseries_src_root '../externals/x13/osx/64/x13as'], 'file') nox13 = true; end -elseif ismac() - if ~exist([dseries_src_root '../externals/x13/osx/64/x13as'], 'file') +elseif isunix() + [status, ~] = system('which x13as'); + if status && ~(exist([dseries_src_root '../externals/x13/linux/64/x13as'], 'file') && exist([dseries_src_root '../externals/x13/linux/32/x13as'], 'file')) nox13 = true; end elseif ispc() -- GitLab