Programming/ETC

(VS) Component too big for incremental LTCG with 32-bit toolset

MeisterTJ 2023. 3. 27. 10:51

Visual Studio에서 64bit로 빌드하면 아래와 같은 에러가 나타날 때가 있다.

 

"Component too big for incremental LTCG with 32-bit toolset, build without incremental LTCG; Consider switching to 64-bit toolset"

 

분명 프로젝트를 64bit로 빌드를 하는 것인데, 32bit toolset으로 빌드를 하고, 메모리가 부족해서 안된다고 하는 현상이다.

 

해당하는 프로젝트의 vcxproj 파일을 열고 "Globals" 프로퍼티 그룹을 찾는다.

그리고

 

<UseNativeEnvironment>true</UseNativeEnvironment>

 

위와 같이 넣어주면 해결된다.