Skip to content

Commit ddc5d38

Browse files
committed
Set debug optional argument to true for debug mode.
1 parent 3a17fef commit ddc5d38

5 files changed

Lines changed: 15 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info File="toolbox/gettingStarted.mlx" GroupUUID="" Icon="" Name="gettingStarted" Type="Basic" Visible="1"/>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info location="6f8d9744-e071-4cee-9616-2d13be117622" type="EntryPoint"/>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Info location="Root" type="EntryPoints"/>

toolbox/+vcpkg/buildVcpkgDeps.m

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function buildVcpkgDeps(manifestFolder, vpckgArguments, options)
66
manifestFolder char {mustBeFolder}
77
vpckgArguments {mustBeText} = {};
88
options.buildHostOnly = false;
9+
options.debug = false;
910
end
1011

1112
if ~iscellstr(vpckgArguments) && ~isstring(vpckgArguments)
@@ -97,11 +98,18 @@ function buildVcpkgDeps(manifestFolder, vpckgArguments, options)
9798
% Add vcpkg to path
9899
addToSystemPath(getenv('VCPKG_ROOT'));
99100

101+
% Prepare debug mode
102+
if options.debug
103+
debugArg = ' --debug ';
104+
else
105+
debugArg = '';
106+
end
107+
100108
% Build up vcpkg full command
101109
vcpkgCmd = ['cd ', manifestFolder, ' ',...
102110
targetEnvRootBat,...
103111
' && vcpkg install ',targetTriplet,' --host-triplet ', vcpkg.getHostTriplet,...
104-
' --overlay-triplets "', fullfile(vcpkg.getToolboxRoot,'overlay-triplets'), '" ', strjoin(vpckgArguments,' ')];
112+
' --overlay-triplets "', fullfile(vcpkg.getToolboxRoot,'overlay-triplets'), '" ', strjoin(vpckgArguments,' '), debugArg];
105113

106114
if hasMSVC
107115
vcpkgCmd = [msvcSetupCmd, ' && ', vcpkgCmd];

toolbox/gettingStarted.mlx

40 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)