Skip to content

Commit

Permalink
Use computer('arch') to set vcvarsopts
Browse files Browse the repository at this point in the history
  • Loading branch information
tminka committed Feb 20, 2019
1 parent dba0ca0 commit 76fa715
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mexcompiler.m
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@
vsinstalldir = cc.Location;
options.VSINSTALLDIR = vsinstalldir;
if ispc
% http://msdn.microsoft.com/en-us/library/x4d2c09s(VS.80).aspx
if exist(fullfile(vsinstalldir,'VC','bin','x86_amd64','cl.exe'))
if strcmpi(arch, 'win64')
options.vcvarsopts = 'x86_amd64';
else
options.vcvarsopts = 'x86';
Expand Down

0 comments on commit 76fa715

Please sign in to comment.