diff options
author | Matt Belhorn <belhornmp@ornl.gov> | 2016-07-26 17:09:25 -0400 |
---|---|---|
committer | Matt Belhorn <belhornmp@ornl.gov> | 2016-07-27 11:25:23 -0400 |
commit | 4e6fdd12e26273b15c081400b60791e9d1bd6472 (patch) | |
tree | 1fd178d6fac406c6755539db2244c5186ceafa55 /lib | |
parent | 458deaae5ebe172d8cb096504e34613868fb0f2f (diff) | |
download | spack-4e6fdd12e26273b15c081400b60791e9d1bd6472.tar.gz spack-4e6fdd12e26273b15c081400b60791e9d1bd6472.tar.bz2 spack-4e6fdd12e26273b15c081400b60791e9d1bd6472.tar.xz spack-4e6fdd12e26273b15c081400b60791e9d1bd6472.zip |
Adds targets config file
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/config.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/spack/spack/config.py b/lib/spack/spack/config.py index e2e7dbc0ee..31f0eb3a56 100644 --- a/lib/spack/spack/config.py +++ b/lib/spack/spack/config.py @@ -266,6 +266,19 @@ section_schemas = { ], }, },},},},},}, + 'targets': { + '$schema': 'http://json-schema.org/schema#', + 'title': 'Spack target configuration file schema', + 'type': 'object', + 'additionalProperties': False, + 'patternProperties': { + r'targets:?': { + 'type': 'object', + 'default': {}, + 'additionalProperties': False, + 'patternProperties': { + r'\w[\w-]*': { # target name + 'type': 'string' ,},},},},}, 'modules': { '$schema': 'http://json-schema.org/schema#', 'title': 'Spack module file configuration file schema', |