Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCDDS-core
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
SCDDS
SCDDS-core
Commits
032167c3
Commit
032167c3
authored
5 years ago
by
Federico Felici
Browse files
Options
Downloads
Patches
Plain Diff
Fix cache/codegen Folder setup
parent
9c1df630
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/classes/SCDclass_expcode.m
+6
-6
6 additions, 6 deletions
code/classes/SCDclass_expcode.m
with
6 additions
and
6 deletions
code/classes/SCDclass_expcode.m
+
6
−
6
View file @
032167c3
...
@@ -176,7 +176,7 @@ classdef SCDclass_expcode
...
@@ -176,7 +176,7 @@ classdef SCDclass_expcode
end
end
end
end
function
set
_
cache
_
folder
(
obj
)
function
setcachefolder
(
obj
)
%% Set Cache Folder for experimental code (avoid conflicts with other tmp files)
%% Set Cache Folder for experimental code (avoid conflicts with other tmp files)
CacheFolder
=
fullfile
(
fileparts
(
mfilename
(
'fullpath'
)),
'..'
,
'..'
,
...
CacheFolder
=
fullfile
(
fileparts
(
mfilename
(
'fullpath'
)),
'..'
,
'..'
,
...
'gencodes'
,
sprintf
(
'CacheFolder-%d'
,
obj
.
maincode
));
'gencodes'
,
sprintf
(
'CacheFolder-%d'
,
obj
.
maincode
));
...
@@ -186,11 +186,11 @@ classdef SCDclass_expcode
...
@@ -186,11 +186,11 @@ classdef SCDclass_expcode
'createdir'
,
true
);
'createdir'
,
true
);
end
end
function
set
_
codegen
_
folder
(
obj
)
function
setcodegenfolder
(
obj
)
CodeGenFolder
=
fullfile
(
fileparts
(
mfilename
(
'fullpath'
)),
'..'
,
'..'
,
...
CodeGenFolder
=
fullfile
(
fileparts
(
mfilename
(
'fullpath'
)),
'..'
,
'..'
,
...
'gencodes'
,
sprintf
(
'CodeGenFolder-%d'
,
obj
.
maincode
));
'gencodes'
,
sprintf
(
'CodeGenFolder-%d'
,
obj
.
maincode
));
fprintf
(
'
...
Setting code generation folder to %s\n'
,
CodeGenFolder
)
fprintf
(
'Setting code generation folder to %s\n'
,
CodeGenFolder
)
Simulink
.
fileGenControl
(
'set'
,
...
Simulink
.
fileGenControl
(
'set'
,
...
'CodeGenFolder'
,
CodeGenFolder
,
...
'CodeGenFolder'
,
CodeGenFolder
,
...
'createdir'
,
true
);
'createdir'
,
true
);
...
@@ -441,8 +441,8 @@ classdef SCDclass_expcode
...
@@ -441,8 +441,8 @@ classdef SCDclass_expcode
obj
.
buildworkspacetpstruct
;
obj
.
buildworkspacetpstruct
;
% Set cache and codegen folders
% Set cache and codegen folders
SCDclass_expcode
.
setcachefolder
(
expcode
);
SCDclass_expcode
.
setcachefolder
(
obj
);
SCDclass_expcode
.
setcodegenfolder
(
expcode
);
SCDclass_expcode
.
setcodegenfolder
(
obj
);
end
end
...
@@ -607,7 +607,7 @@ classdef SCDclass_expcode
...
@@ -607,7 +607,7 @@ classdef SCDclass_expcode
end
end
% set CodeGen folder for this expcode (allows fast rebuilding)
% set CodeGen folder for this expcode (allows fast rebuilding)
SCDclass_expcode
.
set
_
co
g
egen
_c
older
(
obj
.
maincode
)
SCDclass_expcode
.
setco
d
egen
f
older
(
obj
)
% check env variable
% check env variable
assert
(
~
isempty
(
getenv
(
'RTCCODE_LIBPATH'
)),
'RTCCODE_LIBPATH environment variable needs to be defined to compile'
);
assert
(
~
isempty
(
getenv
(
'RTCCODE_LIBPATH'
)),
'RTCCODE_LIBPATH environment variable needs to be defined to compile'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment