Skip to content
Snippets Groups Projects
Commit 349deb69 authored by Jakob Kaiser's avatar Jakob Kaiser
Browse files

feat: do not remove system compilers during install

- system compiler might be needed for gcc
- system compiler should not affect other packages since we install from
  spec files.

Change-Id: Ib13749e80c63b9c684c6aebe0dfa349e6c7d9613
parent 3ae9b06e
Branches master
No related tags found
No related merge requests found
...@@ -42,12 +42,6 @@ if [ ${YASHCHIKI_BUILD_SPACK_GCC} -eq 1 ]; then ...@@ -42,12 +42,6 @@ if [ ${YASHCHIKI_BUILD_SPACK_GCC} -eq 1 ]; then
set -x set -x
${MY_SPACK_CMD} "${SPACK_ARGS_INSTALL[@]}" install --no-cache --show-log-on-error "${spec_compiler}" ${MY_SPACK_CMD} "${SPACK_ARGS_INSTALL[@]}" install --no-cache --show-log-on-error "${spec_compiler}"
# remove system compilers from spack to avoid conflicting concretization
echo "$(${MY_SPACK_CMD} compiler list)"
for system_compiler in ${system_compilers}; do
${MY_SPACK_CMD} compiler rm --scope site "${system_compiler}"
done
# add fresh compiler to spack # add fresh compiler to spack
${MY_SPACK_CMD} compiler add --scope site ${MY_SPACK_FOLDER}/opt/spack/linux-*/*/gcc-${YASHCHIKI_SPACK_GCC_VERSION}-* ${MY_SPACK_CMD} compiler add --scope site ${MY_SPACK_FOLDER}/opt/spack/linux-*/*/gcc-${YASHCHIKI_SPACK_GCC_VERSION}-*
fi fi
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment