summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMarc Mengel <marc.mengel@gmail.com>2020-08-20 10:06:22 -0500
committerGitHub <noreply@github.com>2020-08-20 17:06:22 +0200
commitd5c3b876e0d44639e01de60cc71ed18dfb18f321 (patch)
treed66aedaae84e5c735907fb20e32b2fe4e18bbd02 /var
parent286c3d6cbcd19882ca5b2b1f50f42e298fd9ca20 (diff)
downloadspack-d5c3b876e0d44639e01de60cc71ed18dfb18f321.tar.gz
spack-d5c3b876e0d44639e01de60cc71ed18dfb18f321.tar.bz2
spack-d5c3b876e0d44639e01de60cc71ed18dfb18f321.tar.xz
spack-d5c3b876e0d44639e01de60cc71ed18dfb18f321.zip
detatch binutils usage from bootstrap in gcc variants (#18116)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gcc/package.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py
index 769098221e..a5ceb46046 100644
--- a/var/spack/repos/builtin/packages/gcc/package.py
+++ b/var/spack/repos/builtin/packages/gcc/package.py
@@ -95,6 +95,9 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage):
variant('nvptx',
default=False,
description='Target nvptx offloading to NVIDIA GPUs')
+ variant('bootstrap',
+ default=False,
+ description='add --enable-bootstrap flag for stage3 build')
depends_on('flex', type='build', when='@master')
@@ -468,11 +471,15 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage):
if spec.satisfies('+binutils'):
binutils = spec['binutils'].prefix.bin
options.extend([
- '--with-sysroot=/',
'--with-gnu-ld',
'--with-ld=' + binutils.ld,
'--with-gnu-as',
'--with-as=' + binutils.join('as'),
+ ])
+
+ # enable_bootstrap
+ if spec.satisfies('+bootstrap'):
+ options.extend([
'--enable-bootstrap',
])