Build chromium dmg for macos on Linux enviornment

196 views
Skip to first unread message

Alexander Cato

unread,
Nov 2, 2020, 11:12:28 PM11/2/20
to Chromium-dev
Is there any way to use a linux based build server to output a MacOS chromium dmg build or do all mac builds have to be built on MacOS?

Avi Drissman

unread,
Nov 2, 2020, 11:22:00 PM11/2/20
to alexand...@privacyone.io, Chromium-dev
The dmg tools that we use are the ones provided by macOS. The dmg format is not an open one, and so while there might be Linux tools to handle them, I don't know how much advice we can give in their use.

Avi

On Mon, Nov 2, 2020 at 11:11 PM Alexander Cato <alexand...@privacyone.io> wrote:
Is there any way to use a linux based build server to output a MacOS chromium dmg build or do all mac builds have to be built on MacOS?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/bfda8845-a30a-4828-8d43-12eef8845805n%40chromium.org.

Alexander Cato

unread,
Nov 2, 2020, 11:28:42 PM11/2/20
to Chromium-dev, Avi Drissman, Chromium-dev, Alexander Cato
Perhaps some kind of separation? Is is possible to run maybe just the resource intensive build process on a Linux host and just the quick packaging task on a Mac? Trying to speed up CI build server times and running builds on restrictive Apple hardware and software is holding it back.

Nico Weber

unread,
Nov 3, 2020, 9:25:02 AM11/3/20
to alexand...@privacyone.io, Chromium-dev, Avi Drissman
Cross-building chrome/mac on a linux box isn't supported. The big technical blocker is the lack of a good mach-o linker that runs on linux (but this is improving). There might be license questions around the topic of cross-building for macOS too.

Having said that, a few years ago I prototyped this a bit in https://chromium-review.googlesource.com/c/chromium/src/+/1236713 . It needs rebasing, but back then it was far along enough that at least `gn gen` for chrome/mac could run on a linux host. Not quite enough for building, bu tit was enough to allow me to debug a build issue for mac on a linux box back then. Maybe it's useful. (The CL desc has lots of notes too -- it's a bit out-of-date, nowadays lld has a new mach-o port under development that's maybe ready for serious use soon.)

Reply all
Reply to author
Forward
0 new messages