Skip to content

Commit f70de6f

Browse files
committed
250719.220610.PDT improve setup.m and compile.m
1 parent bb663c1 commit f70de6f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

matlab/setup_tools/compile.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ function compile(solvers, mexdir, fortd, gateways, options)
7575
extra_compiler_options = '';
7676
compiler_manufacturer = lower(compiler_configurations.Manufacturer);
7777
if contains(compiler_manufacturer, 'gnu') % gfortran
78-
extra_compiler_options = '-g -fno-stack-arrays -frecursive';
78+
% -Wno-missing-include-dirs is needed to suppress the warning about missing include directories
79+
% when simulink is not installed.
80+
extra_compiler_options = '-g -Wno-missing-include-dirs -fno-stack-arrays -frecursive';
7981
elseif contains(compiler_manufacturer, 'intel') % Intel compiler
8082
if ispc
8183
extra_compiler_options = '/Z7 /heap-arrays /assume:recursion';

setup.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ function setup(varargin)
123123
% Add the path and return if requested.
124124
if strcmp(action, 'path')
125125
add_save_path(interfaces, package_name);
126+
% Add the tests directory to the path, so that the user can run `testprima`.
127+
addpath(tests);
126128
% Create `all_precisions.m` and `all_variants.m` under `tools` according to the content of
127129
% `mexdir`. They reflect the precisions ('half', 'single', 'double', 'quadruple') and variants
128130
% ('modern', 'classical') of the solvers available under `mexdir`.

0 commit comments

Comments
 (0)