validate
クラス: coder.make.BuildTool
名前空間: coder.make
ビルド ツール プロパティの検証
構文
validtool = h.validate
入力引数
出力引数
例
ビルド ツール ソフトウェア (コンパイラ、リンカー、アーカイバー) をインストールする前にビルド ツールの検証を行った場合、coder.make.BuildTool.validate
メソッドは警告またはエラー メッセージを返します。
MATLAB® Coder™ ビルド プロセスへのカスタム ツールチェーンの追加の例から開始し、以下の行を入力します。
tc = intel_tc;
tool = tc.getBuildTool('C Compiler');
tool.validate
ホスト コンピューターに Intel® ツールチェーンがインストールされていない場合、validate
は以下のメッセージを表示します。
Warning: Validation of build tool 'Intel C Compiler' may require the toolchain to be set up first. The setup information is registered in the toolchain this build tool belong to. Pass the parent ToolchainInfo object to VALIDATE in order for any toolchain setup to be done before validation. > In C:\Program Files\MATLAB\R2013a\toolbox\coder\foundation\build\+coder\+make\ BuildTool.p>BuildTool.checkForPresence at 634 In C:\Program Files\MATLAB\R2013a\toolbox\coder\foundation\build\+coder\+make\ BuildTool.p>BuildTool.validate at 430 Error using message In 'CoderFoundation:toolchain:ValidateBuildToolError',data type supplied is incorrect for parameter {1}. Error in C:\Program Files\MATLAB\R2013a\toolbox\coder\foundation\build\+coder\+make\ BuildTool.p>BuildTool.checkForPresence (line 664) Error in C:\Program Files\MATLAB\R2013a\toolbox\coder\foundation\build\+coder\+make\ BuildTool.p>BuildTool.validate (line 430) Trial>>
詳細は、カスタム ツールチェーンの検証のトラブルシューティングを参照してください。
バージョン履歴
R2013a で導入