- Code: Select all
FAILED: win_clang_x86_for_rust_host_build_tools/libc_libc_vunknown_build_script.exe win_clang_x86_for_rust_host_build_tools/libc_libc_vunknown_build_script.exe.pdb
…
= note: lld-link: error: libucrt.lib(exit.obj): machine type x86 conflicts with x64
lld-link: error: libucrt.lib(initterm.obj): machine type x86 conflicts with x64
Reference: https://github.com/chromiumembedded/cef/issues/3553
Now, I am building cef 122.0.6261.112 from source on windows. While building, I started getting rust dependency errors as Rust was disabled. So to fix that, I enabled rust again as Rust is now required from M121 (https://groups.google.com/a/chromium.org/g/chromium-packagers/c/0OGwno7v60k/m/5fX-q3ZHAQAJ). With rust enabled, rust dependency issue is fixed but now I started getting original errors (mentioned above)
From M121 milestone, Rust can not be disabled so I am looking for proper fix.
I found few references (https://issues.chromium.org/issues/40275898) and here (https://groups.google.com/a/chromium.or ... UxWvBoeoKU), based on that I tried setting DEPOT_TOOLS_WIN_TOOLCHAIN=1 but still the same results.
Using below update.bat with cmd.exe prompt:
- Code: Select all
set CEF_USE_GN=1
set GN_DEFINES=enable_precompiled_headers=false proprietary_codecs=true ffmpeg_branding=Chrome
set GN_ARGUMENTS=--ide=vs2022 --sln=cef --filters=//cef/*
python ..\automate\automate-git.py --download-dir=d:\cef\build\cg --depot-tools-dir=d:\cef\build\depot_tools --force-clean --no-distrib --no-build --branch=6261 --chromium-checkout=refs/tags/122.0.6261.94 --verbose-build --checkout=d14e0517a1d326a3a8c89a385383814a9d0eaf80 --with-pgo-profiles
and create.bat is as follow
- Code: Select all
set CEF_USE_GN=1
set GN_DEFINES=enable_precompiled_headers=false proprietary_codecs=true ffmpeg_branding=Chrome is_official_build=true use_thin_lto=false
set GN_ARGUMENTS=--ide=vs2022 --sln=cef --filters=//cef/*
call cef_create_projects.bat
and ninja command as follow:
- Code: Select all
ninja -v -C 'out\Release_GN_x86' cef
Few points from my build env:
- DEPOT_TOOLS_WIN_TOOLCHAIN is set to 0.
- vs2022_install & GYP_MSVS_OVERRIDE_PATH is set to VS directory.
- depot tool dir is first entry in PATH variable
Am I missing anything here? Do I need any additional Rust specific steps in my build environment?