diff options
author | David Malcolm <dmalcolm@redhat.com> | 2015-01-29 16:25:14 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2015-01-29 16:25:14 +0000 |
commit | 231d020bfb040a5539937ac3ad79c93769b63c5b (patch) | |
tree | 3e5a350e954a658d2efdc71bb3a05bae5e0210c9 /configure.ac | |
parent | 3dbb84276aca1070a0802efae72483bec4f10882 (diff) | |
download | gcc-231d020bfb040a5539937ac3ad79c93769b63c5b.zip gcc-231d020bfb040a5539937ac3ad79c93769b63c5b.tar.gz gcc-231d020bfb040a5539937ac3ad79c93769b63c5b.tar.bz2 |
PR jit/64780: configure: --enable-host-shared and the jit
ChangeLog:
PR jit/64780
* configure.ac: Require the user to explicitly specify
--enable-host-shared if the jit is enabled.
* configure: Regenerate.
From-SVN: r220253
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 267c8e6..4ea5e00 100644 --- a/configure.ac +++ b/configure.ac @@ -3467,6 +3467,30 @@ AC_ARG_ENABLE(host-shared, [host_shared=$enableval], [host_shared=no]) AC_SUBST(host_shared) +# PR jit/64780: Require the user to explicitly specify +# --enable-host-shared if the jit is enabled, hinting +# that they might want to do a separate configure/build of +# the jit, to avoid users from slowing down the rest of the +# compiler by enabling the jit. +if test ${host_shared} = "no" ; then + case "${enable_languages}" in + *jit*) + AC_MSG_ERROR([ +Enabling language "jit" requires --enable-host-shared. + +--enable-host-shared typically slows the rest of the compiler down by +a few %, so you must explicitly enable it. + +If you want to build both the jit and the regular compiler, it is often +best to do this via two separate configure/builds, in separate +directories, to avoid imposing the performance cost of +--enable-host-shared on the regular compiler.]) + ;; + *) + ;; + esac +fi + # Specify what files to not compare during bootstrap. compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" |