공장 이야기

Chromium 76.0.3809.87 버전 빌드 시 오류...

바다가소주라면- 2022. 4. 26. 18:20

Chromium 76.0.3809.87 버전 빌드 시 x64는 문제 없이 잘되지만... x86 빌드 시 오류가 생긴다...

 

"C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt\wrl/module.h(1809,9): error: no matching function for call to 'InitOnceExecuteOnce'
        InitOnceExecuteOnce("

 

어쩌구 저쩌구~~~ Microsoft::WRL 관련 오류로 보이는데... 왜 x64는 괜찮을까???

구글에 물어 보니...

 

https://chromium.googlesource.com/chromium/src.git/+/ab3b65fecd8ddfd1c857567b2f358addae6679bf%5E%21/#F0 

 

Diff - ab3b65fecd8ddfd1c857567b2f358addae6679bf^! - chromium/src.git - Git at Google

authorBruce Dawson Fri Jun 05 20:43:15 2020

chromium.googlesource.com

 

이런 커밋이 하나 나오는데... 왜 반영이 안된거지????

 

src\build\config\win 에 있는 BUILD.gn 열어서

 

cflags += [ "/D__WRL_ENABLE_FUNCTION_STATICS__" ] 추가 해주면 된다

 

아래와 같이.... 내기준으로 102 쯤???

    cflags += [ "/X" ]

    cflags += [ "/D__WRL_ENABLE_FUNCTION_STATICS__" ]

    # Tell clang which version of MSVC to emulate.
    cflags += [ "-fmsc-version=1916" ]

 

※ PS. 사용자 temp 디렉토리에 있는 파일을 copy 해주라는 오류도...

copy /y c:\users\xxx\appdata\local\temp\tmpjlgiun\* D:\xxx\src\third_party\win_build_output\midl\third_party\isimpledom\ISimpleDOMNode.idl\x86

 

예전에 76 빌드 할때는 이런 오류가 없었는데... 흠...