emacs-build
emacs-build copied to clipboard
Allow to building/packaging working Gccemacs
Hi @juanjosegarciaripoll, thanks for your scripts, I have successfully built/packaged portable working Gccemacs on Windows.
I've created this PR to contribute back to the original repo, hoping it can be merged. The changes are:
- use
-noprofile
when invoking powershell, it's faster - Fix some options in script (--slim-build, --with-xxx), dynamically align the build threads to the number of core. I found this prevent hang when building Emacs on CI
- Change the
slim_exclusion
filter so the gccemacs dependencies can be included, and it also reduces the size by not including unnecessary binaries. - Include a patch (under
/patches
) so Emacs can be built under Windows 10. The patches can be applied after the emacs source code has been checked out.
I've also included the last commit to revert the change in build.yml
. In my fork, the build.yml
can automatically publish (via release) the new package version.
I am in the process of integrating separately some of the changes. So far, I allowed the use of MSYS2 installations via environment variables, the application of patch files via command line option (--patch), the --nativecomp feature now uses mingw-libgccjit and AOT, and am trying to understand the other changes. Please submit separate pull requests for features that I may not have included by tomorrow.