unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: emacs-win-builder
Date: Thu, 01 Sep 2016 17:05:28 +0300	[thread overview]
Message-ID: <83inufg1g7.fsf@gnu.org> (raw)
In-Reply-To: <2daa28a1-8223-b6e3-3424-ff281a3fa67e@gmail.com> (message from Nikolay Kudryavtsev on Thu, 1 Sep 2016 15:39:42 +0300)

> From: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
> Cc: emacs-devel@gnu.org
> Date: Thu, 1 Sep 2016 15:39:42 +0300
> 
>  E.g., on my systems, MSYS can only work when invoked from the MSYS Bash
>  window.
> 
> That's interesting. What's the possible breaking point here? Assuming that we clear our exec-path, use
> bash.exe from msys directory and add whatever necessary to the process environment, I could not think of
> anything that should break here, that's not easily fixable.

Mainly, PATH (in process-environment) vs exec-path, which is
exacerbated by MSYS remapping of /usr etc. to Windows directory
structure.  I think you worked around that for the case that MinGW and
MSYS are installed as part of your script, but you cannot possibly do
that reliably for a system where both are already installed.  E.g., on
my system, MSYS and MinGW are in two separate trees, side by side, and
there's no easy way for you to know how MSYS /usr/bin is remapped to
its Windows name.

> For libarchive we would need some way to extract zip files
> first. GnuWin provides a setup version of unzip, so I guess that
> would be one option.

Doesn't w32-shell-execute work?  The Explorer can unzip archives, so
perhaps this could be an alternative, if it works.

> First, what would be some reasonable optimization profiles. I think we all agree that we want to have
> something with debug information as default. So what would be the best flags here? And then there should be
> an option to make an optimized build, what would be the best flags for it?

I use "-O0 -gdwarf-2 -g3" for debug builds, and "-O2 -gdwarf-2 -g3"
(or even -gdwarf-4 for GCC 5 and later) for optimized builds.  GNU
projects normally do "make install-strip" for the official releases
and "make install" for pretests and snapshots, so my advice would be
to do that here as well.

> Also I do
> "--enable-checking='yes,glyphs' --enable-check-lisp-object-type"
> everywhere.

It's a good idea in pretests and snapshots, but I think you should
remove it for official releases. They just make Emacs slower, which is
not a good thing in production.

> Also, are there any other configure related options we may want to implement?

The --with-modules switch comes to mind, but that's all.  For 32-bit
builds, I'd also recommend --with-wide-int, but I know some people
disagree.



  reply	other threads:[~2016-09-01 14:05 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-30 19:47 emacs-win-builder Nikolay Kudryavtsev
2016-08-31 14:17 ` emacs-win-builder Eli Zaretskii
2016-09-01 12:39   ` emacs-win-builder Nikolay Kudryavtsev
2016-09-01 14:05     ` Eli Zaretskii [this message]
2016-08-31 21:45 ` emacs-losedows-builder Richard Stallman
2016-09-01  8:37   ` emacs-losedows-builder Simon Friis Vindum
2016-09-01 18:54     ` emacs-losedows-builder Richard Stallman
2016-09-01 23:17       ` emacs-losedows-builder Dmitry Gutov
2016-09-02  1:36         ` emacs-losedows-builder Paul Eggert
2016-09-12 17:14           ` emacs-losedows-builder Nikolay Kudryavtsev
2016-09-02 13:10         ` emacs-losedows-builder Richard Stallman
2016-09-02 13:19           ` emacs-losedows-builder Dmitry Gutov
2016-09-02 14:15           ` emacs-losedows-builder Kaushal Modi
2016-09-02 17:44             ` emacs-losedows-builder Richard Copley
2016-09-03 12:02               ` emacs-losedows-builder Richard Stallman
2016-09-04  6:51                 ` emacs-losedows-builder Tim Cross
2016-09-04 13:48                   ` emacs-losedows-builder Richard Stallman
2016-09-02 18:46             ` emacs-losedows-builder Richard Stallman
2016-09-02 20:12               ` emacs-losedows-builder Emanuel Berg
2016-09-02  1:05       ` emacs-losedows-builder John Wiegley
2016-09-01 12:44   ` emacs-losedows-builder Nikolay Kudryavtsev
2016-09-01 18:55     ` emacs-losedows-builder Richard Stallman
2016-09-12 17:43       ` emacs-losedows-builder Nikolay Kudryavtsev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83inufg1g7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=nikolay.kudryavtsev@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).