summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-11-04 19:32:25 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2016-11-04 17:32:25 -0700
commit4e6d5350588ab2435afa4393c75190ec0e9c031c (patch)
tree396f2affcefa9aac2d09b526082120f68a09318c /etc
parent78154a63e86774fb8952f42883f7788e94d0c8d2 (diff)
downloadspack-4e6d5350588ab2435afa4393c75190ec0e9c031c.tar.gz
spack-4e6d5350588ab2435afa4393c75190ec0e9c031c.tar.bz2
spack-4e6d5350588ab2435afa4393c75190ec0e9c031c.tar.xz
spack-4e6d5350588ab2435afa4393c75190ec0e9c031c.zip
Set Clang as the default compiler on macOS (#2225)
* Set OS-specific default compilers * Fix flake8 warnings
Diffstat (limited to 'etc')
-rw-r--r--etc/spack/defaults/darwin/packages.yaml18
-rw-r--r--etc/spack/defaults/packages.yaml1
2 files changed, 19 insertions, 0 deletions
diff --git a/etc/spack/defaults/darwin/packages.yaml b/etc/spack/defaults/darwin/packages.yaml
new file mode 100644
index 0000000000..24a08809db
--- /dev/null
+++ b/etc/spack/defaults/darwin/packages.yaml
@@ -0,0 +1,18 @@
+# -------------------------------------------------------------------------
+# This file controls default concretization preferences for Spack.
+#
+# Settings here are versioned with Spack and are intended to provide
+# sensible defaults out of the box. Spack maintainers should edit this
+# file to keep it current.
+#
+# Users can override these settings by editing the following files.
+#
+# Per-spack-instance settings (overrides defaults):
+# $SPACK_ROOT/etc/spack/packages.yaml
+#
+# Per-user settings (overrides default and site settings):
+# ~/.spack/packages.yaml
+# -------------------------------------------------------------------------
+packages:
+ all:
+ compiler: [clang, gcc, intel]
diff --git a/etc/spack/defaults/packages.yaml b/etc/spack/defaults/packages.yaml
index a6b361d908..eae7752eee 100644
--- a/etc/spack/defaults/packages.yaml
+++ b/etc/spack/defaults/packages.yaml
@@ -15,6 +15,7 @@
# -------------------------------------------------------------------------
packages:
all:
+ compiler: [gcc, intel, pgi, clang, xl, nag]
providers:
mpi: [openmpi, mpich]
blas: [openblas]