summaryrefslogtreecommitdiff
path: root/.github/ISSUE_TEMPLATE/build_error.yml
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-05-21 23:44:51 +0200
committerGitHub <noreply@github.com>2022-05-21 23:44:51 +0200
commit2113b625d17178f24189c0059a6f360c181b589f (patch)
treeeea1bb89be4894286d696ec5d0322e035a9295b1 /.github/ISSUE_TEMPLATE/build_error.yml
parentc6c3d243e1f7f5672de8f862c10c9a5eee17a947 (diff)
downloadspack-2113b625d17178f24189c0059a6f360c181b589f.tar.gz
spack-2113b625d17178f24189c0059a6f360c181b589f.tar.bz2
spack-2113b625d17178f24189c0059a6f360c181b589f.tar.xz
spack-2113b625d17178f24189c0059a6f360c181b589f.zip
gcc: add `build_type` and `profiled` variants (#30660)
Add a `build_type` variant, which allows building optimized compilers, as well as target libraries (libstdc++ and friends). The default is `build_type=RelWithDebInfo`, which corresponds to GCC's default of -O2 -g. When building with `+bootstrap %gcc`, also add Spack's arch specific flags using the common denominator between host and new GCC. It is done by creating a config/spack.mk file in def patch, that looks as follows: ``` BOOT_CFLAGS := $(filter-out -O% -g%, $(BOOT_CFLAGS)) -O2 -g -march=znver2 -mtune=znver2 CFLAGS_FOR_TARGET := $(filter-out -O% -g%, $(CFLAGS_FOR_TARGET)) -O2 -g -march=znver2 -mtune=znver2 CXXFLAGS_FOR_TARGET := $(filter-out -O% -g%, $(CXXFLAGS_FOR_TARGET)) -O2 -g -march=znver2 -mtune=znver2 ```
Diffstat (limited to '.github/ISSUE_TEMPLATE/build_error.yml')
0 files changed, 0 insertions, 0 deletions