diff options
author | Michael Kuhn <suraia@ikkoku.de> | 2018-10-18 21:55:58 +0200 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2018-10-18 12:55:58 -0700 |
commit | 7070d9fcd4a7076e67aeaf0656025ba1ff67a11e (patch) | |
tree | 19fb093114ff00ce476c23ef65348cfb8fc4d343 /etc | |
parent | 0f5f49f7518a463d65d7105156789aa96ce87d2e (diff) | |
download | spack-7070d9fcd4a7076e67aeaf0656025ba1ff67a11e.tar.gz spack-7070d9fcd4a7076e67aeaf0656025ba1ff67a11e.tar.bz2 spack-7070d9fcd4a7076e67aeaf0656025ba1ff67a11e.tar.xz spack-7070d9fcd4a7076e67aeaf0656025ba1ff67a11e.zip |
Allow setting language of compiler messages (#9486)
* Add a build_language config.yaml option which controls the language
of compiler messages
* build_language defaults to "C", in which case the compiler messages
will be in English. This allows Spack log parsing to detect and
highlight error messages (since the regular expressions to find
error messages are in English)
* The user can use the default language in their environment by setting
the build_language config variable to null or ''
Diffstat (limited to 'etc')
-rw-r--r-- | etc/spack/defaults/config.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/spack/defaults/config.yaml b/etc/spack/defaults/config.yaml index 7387203867..f032a64e34 100644 --- a/etc/spack/defaults/config.yaml +++ b/etc/spack/defaults/config.yaml @@ -77,6 +77,14 @@ config: dirty: false + # The language the build environment will use. This will produce English + # compiler messages by default, so the log parser can highlight errors. + # If set to C, it will use English (see man locale). + # If set to the empty string (''), it will use the language from the + # user's environment. + build_language: C + + # When set to true, concurrent instances of Spack will use locks to # avoid modifying the install tree, database file, etc. If false, Spack # will disable all locking, but you must NOT run concurrent instances |