summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-04-23 19:10:09 +0200
committerGitHub <noreply@github.com>2021-04-23 11:10:09 -0600
commitfef05621a77ee8b62b318370e1ec7bf39502eb7c (patch)
tree1d0e5239ef7cf6a2d0efd165652a6474367713c7
parentce664f6f5f9dfb16bcecf653b59535e4fb7bc88e (diff)
downloadspack-fef05621a77ee8b62b318370e1ec7bf39502eb7c.tar.gz
spack-fef05621a77ee8b62b318370e1ec7bf39502eb7c.tar.bz2
spack-fef05621a77ee8b62b318370e1ec7bf39502eb7c.tar.xz
spack-fef05621a77ee8b62b318370e1ec7bf39502eb7c.zip
Bootstrap with -O3 in cmake (#23147)
-rw-r--r--var/spack/repos/builtin/packages/cmake/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cmake/package.py b/var/spack/repos/builtin/packages/cmake/package.py
index 7ed41db45d..c6e9dab670 100644
--- a/var/spack/repos/builtin/packages/cmake/package.py
+++ b/var/spack/repos/builtin/packages/cmake/package.py
@@ -228,6 +228,8 @@ class Cmake(Package):
def bootstrap_args(self):
spec = self.spec
args = [
+ 'CFLAGS=-O3',
+ 'CXXFLAGS=-O3',
'--prefix={0}'.format(self.prefix),
'--parallel={0}'.format(make_jobs)
]