Intel builds on MacOS running on Apple Silcon

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Intel builds on MacOS running on Apple Silcon

Postby sjames1958 » Tue Jan 31, 2023 5:58 am

I read this in the build page.

`Building Intel 64-bit on an ARM64 MacOS host system is not yet supported (see here for details).`

When I clicked on the "here" for details, that issue is shown as fixed. So, is it possible to build x86 CEF on mac silicon machine?
sjames1958
Mentor
 
Posts: 60
Joined: Sun Jun 22, 2014 7:41 am

Re: Intel builds on MacOS running on Apple Silcon

Postby ndesktop » Tue Jan 31, 2023 6:09 am

I don't think x86 is supported anymore. The quote states "64-bit" and "ARM64".
And even if it still is, the fix is
Code: Select all
  } else if (host_cpu == "arm64" && current_cpu == "x64") {
    # Cross-build from arm64 to intel (likely on an Apple Silicon mac).
    v8_snapshot_toolchain =
        "//build/toolchain/${host_os}:clang_arm64_v8_$v8_current_cpu"
  }

I think this addresses only x64 CPU and toolchain.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: Intel builds on MacOS running on Apple Silcon

Postby magreenblatt » Tue Jan 31, 2023 8:41 am

32-bit Intel is not a supported configuration on Mac. 64-bit Intel is supported and can be built on both Intel and ARM64 host. I’ll update the Wiki shortly.

To build Intel CEF on an ARM64 MacOS host system:

Code: Select all
export GN_DEFINES=is_official_build=true
export CEF_ARCHIVE_FORMAT=tar.bz2
export CEF_ENABLE_AMD64=1
python3 automate-git.py --download-dir=%download_dir% --branch=%cef_branch% --minimal-distrib --client-distrib --force-clean --x64-build --with-pgo-profiles
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Intel builds on MacOS running on Apple Silcon

Postby sjames1958 » Thu Feb 02, 2023 8:03 am

Thanks - this solved it for me.
sjames1958
Mentor
 
Posts: 60
Joined: Sun Jun 22, 2014 7:41 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 55 guests