emacs: add support for native compilation on master (#23493)
* Emacs native compilation on master * emacs: Mark tools correctly as build dependency
This commit is contained in:
parent
0d92c39d47
commit
702f343fb1
1 changed files with 10 additions and 4 deletions
|
@ -33,6 +33,7 @@ class Emacs(AutotoolsPackage, GNUMirrorPackage):
|
||||||
description="Select an X toolkit (gtk, athena)"
|
description="Select an X toolkit (gtk, athena)"
|
||||||
)
|
)
|
||||||
variant('tls', default=False, description="Build Emacs with gnutls")
|
variant('tls', default=False, description="Build Emacs with gnutls")
|
||||||
|
variant('native', default=False, description="enable native compilation of elisp")
|
||||||
|
|
||||||
depends_on('pkgconfig', type='build')
|
depends_on('pkgconfig', type='build')
|
||||||
|
|
||||||
|
@ -49,12 +50,14 @@ class Emacs(AutotoolsPackage, GNUMirrorPackage):
|
||||||
depends_on('gtkplus', when='+X toolkit=gtk')
|
depends_on('gtkplus', when='+X toolkit=gtk')
|
||||||
depends_on('gnutls', when='+tls')
|
depends_on('gnutls', when='+tls')
|
||||||
depends_on('jpeg')
|
depends_on('jpeg')
|
||||||
depends_on('m4', when="@master:")
|
depends_on('m4', type='build', when="@master:")
|
||||||
depends_on('autoconf', when="@master:")
|
depends_on('autoconf', type='build', when="@master:")
|
||||||
depends_on('automake', when="@master:")
|
depends_on('automake', type='build', when="@master:")
|
||||||
depends_on('libtool', when="@master:")
|
depends_on('libtool', type='build', when="@master:")
|
||||||
|
depends_on('gcc@11: +strip languages=jit', when="+native")
|
||||||
|
|
||||||
conflicts('@:26.3', when='platform=darwin os=catalina')
|
conflicts('@:26.3', when='platform=darwin os=catalina')
|
||||||
|
conflicts('+native', when='@:27.99.99', msg="native compilation require @master")
|
||||||
|
|
||||||
@when('platform=darwin')
|
@when('platform=darwin')
|
||||||
def setup_build_environment(self, env):
|
def setup_build_environment(self, env):
|
||||||
|
@ -80,6 +83,9 @@ def configure_args(self):
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
args.append('--without-ns')
|
args.append('--without-ns')
|
||||||
|
|
||||||
|
if '+native' in spec:
|
||||||
|
args.append('--with-native-compilation')
|
||||||
|
|
||||||
if '+tls' in spec:
|
if '+tls' in spec:
|
||||||
args.append('--with-gnutls')
|
args.append('--with-gnutls')
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue