| Real-Time Workshop® | ![]() |
options=getLinkFlags(buildinfo, includeGroups, excludeGroups)
includeGroups and excludeGroups are optional.
Build information returned by RTW.BuildInfo.
A character array or cell array that specifies groups of linker flags you want the function to return.
A character array or cell array that specifies groups of linker flags you do not want the function to return. To exclude groups and not include specific groups, specify an empty cell array ('') for includeGroups.
Linker options stored in the model's build information.
The getLinkFlags function returns linker options stored in the model's build information. Using optional includeGroups and excludeGroups arguments, you can selectively include or exclude groups of options the function returns.
If you choose to specify excludeGroups and omit includeGroups, specify a null string ('') for includeGroups.
Get all linker options stored in build information myModelBuildInfo.
myModelBuildInfo = RTW.BuildInfo;
addLinkFlags(myModelBuildInfo, {'-MD -Gy' '-T'},...
{'Debug' 'MemOpt'});
linkflags=getLinkFlags(myModelBuildInfo);
linkflags
linkflags =
'-MD -Gy' '-T'Get the linker options stored with the group name Debug in build information myModelBuildInfo.
myModelBuildInfo = RTW.BuildInfo;
addLinkFlags(myModelBuildInfo, {'-MD -Gy' '-T'},...
{'Debug' 'MemOpt'});
linkflags=getLinkFlags(myModelBuildInfo, {'Debug'});
linkflags
linkflags =
'-MD -Gy'Get all compiler options stored in build information myModelBuildInfo, except those with the group name Debug.
myModelBuildInfo = RTW.BuildInfo;
addLinkFlags(myModelBuildInfo, {'-MD -Gy' '-T'},...
{'Debug' 'MemOpt'});
linkflags=getLinkFlags(myModelBuildInfo, '', {'Debug'});
linkflags
linkflags =
'-T'getCompileFlags, getDefines
Programming a Post Code Generation Command
![]() | getIncludePaths | getNonBuildFiles | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |