주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.

target.PairedDirective 클래스

네임스페이스: target

두 개의 명령줄 플래그에 대해 설명하십시오.

R2023a 이후

설명

함께 사용하는 명령줄 플래그 쌍을 설명할 때는 target.PairedDirective 객체를 사용하십시오. 예를 들어, --start-group--end-group는 일련의 라이브러리를 다중 패스 방식으로 링크할 수 있게 해줍니다.

target.PairedDirective 객체를 생성하려면 target.BuildTool 객체의 setDirective 메서드를 사용하십시오.

속성

모두 확장

지시문 쌍의 이름.

특성:

GetAccess
public
SetAccess
public

시작 지시문의 값.

특성:

GetAccess
public
SetAccess
public

종료 지시문의 값.

특성:

GetAccess
public
SetAccess
public

예제

모두 축소

이 코드 예제는 순환 의존성이 있는 라이브러리들을 한 그룹으로 묶도록 C 링커를 지정하는 방법을 보여줍니다.

cLinker = target.create('BuildTool', 'Linker', 'gcc', ...
    'Name', 'MinGW Linker', ...
    'HostOperatingSystemSupport', target.HostOperatingSystemSupport.WindowsOnly);
cLinker.setDirective('LibraryGroup', '-Wl,--start-group', '-Wl,--end-group');

버전 내역

R2023a에 개발됨