Main Content


Update file separator character for file lists in build information



updateFileSeparator(buildinfo,separator) changes instances of the current file separator (/ or \) in the build information to the specified file separator.

The default value for the file separator matches the value returned by the MATLAB® command filesep. For template makefile (TMF) approach builds, you can override the default by defining a separator with the MAKEFILE_FILESEP macro in the template makefile. If the GenerateMakefile parameter is set, the code generator overrides the default separator and updates the build information after evaluating the PostCodeGenCommand configuration parameter.


collapse all

Update object myBuildInfo to apply the Windows® file separator.

myBuildInfo = RTW.BuildInfo;

Input Arguments

collapse all

RTW.BuildInfo object that contains information for compiling and linking generated code.

The separator argument specifies the file separator \ (Windows) or / (UNIX®) to use in file path specifications in the build information.

Example: '\'

Introduced in R2006a