Skip to Main Content Skip to Search
Product Documentation

build - Build or rebuild current project

Syntax

[result,numwarns]=IDE_Obj.build(timeout)
IDE_Obj.build('all')

IDEs

This function supports the following IDEs:

Description

[result,numwarns]=IDE_Obj.build(timeout) incrementally builds the active project. Incremental builds recompile only source files in your project that you changed or added after the most recent build. build uses the file time stamp to determine whether to recompile a file. After recompiling the source files, build links the object files to make a new program file.

The value of result is 1 when the build process completes successfully. The value of numwarns is the number of compilation warnings generated from the build process.

The timeout argument defines the number of seconds MATLAB waits for the IDE to complete the build process. If the IDE exceeds the timeout period, this method returns a timeout error immediately. The timeout error does not terminate the build process in the IDE. The IDE continues the build process. The timeout error indicates that the build process did not complete before the specified timeout period expired. If you omit the timeout argument, the build method uses a default value of 1000 seconds.

IDE_Obj.build('all') rebuilds all the files in the active project.

See Also

isrunning | open

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS