polyspace.test.build
R2026bDescription
builds a project buildResults=polyspace.test.build(proj)proj containing C/C++ sources and tests (optional).
If an error occurs during build, the function throws an exception of type polyspace.ErrorWithLog. (since R2026a)
builds a project using additional options specified in buildResults=polyspace.test.build(proj, otherOptions)otherOptions.
Input Arguments
Output Arguments
Tips
When building using a custom toolchain (one created using the target framework API), if you encounter the error
Check the toolchain using the methodToolchain <toolchainName> is invalid.polyspace.target.checkTargetPackage.