Skip to content

Commit f3b31ae

Browse files
committed
Add check for any C/C++ installed compiler.
1 parent 8409f43 commit f3b31ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

toolbox/+vcpkg/getHostTriplet.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
cfg = mex.getCompilerConfigurations('C++', 'Selected');
66

7+
assert(~isempty(cfg), 'No compiler was found for this MATLAB installation. Please run "mex -setup" on the MATLAB command window first, and install a supported C/C++ compiler.');
8+
79
if ispc
810
if contains(cfg.ShortName,'MSVC','IgnoreCase',true)
911
triplet = 'x64-windows-static-md';

0 commit comments

Comments
 (0)