validate
빌드 툴 속성 유효성 검사
구문
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>> 자세한 내용은 Troubleshooting Custom Toolchain Validation 항목을 참조하십시오.
버전 내역
R2013a에 개발됨