diff options
author | René Widera <r.widera@hzdr.de> | 2018-04-24 22:43:32 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2018-04-24 13:43:32 -0700 |
commit | caa0c5c68723344e10f41aaac1ef82d0fba1cfb8 (patch) | |
tree | 296f42b20e7f591f439ab343c161aeb90d0d0a23 /.flake8 | |
parent | f7da156879328c7b25758db359d2235af9d245e3 (diff) | |
download | spack-caa0c5c68723344e10f41aaac1ef82d0fba1cfb8.tar.gz spack-caa0c5c68723344e10f41aaac1ef82d0fba1cfb8.tar.bz2 spack-caa0c5c68723344e10f41aaac1ef82d0fba1cfb8.tar.xz spack-caa0c5c68723344e10f41aaac1ef82d0fba1cfb8.zip |
environment shell: fix `spack load` (#7747)
Fix `spack load` with extended packe specifications those includes spaces.
Solved by using perfectly parameter forwarding via temporary array.
example:
```
$ spack install zlib
$ spack install zlib cppflags='-O3 -march=native'
$ spack install zlib cppflags='-O2 -march=native'
$ spack find -d -L -f zlib
==> 3 installed packages.
-- linux-linuxmint18-x86_64 / gcc@5.4.0 -------------------------
k5hg4kkxiutkfl6n53ogz5wnlbdrsdtf zlib@1.2.11%gcc
mse2fyzdxciszdhiqi4b5kl6fxkps3fh zlib@1.2.11%gcc cppflags="-O2 -march=native"
vrnvj2fikcbxqxrymctnlpmud7wbuahk zlib@1.2.11%gcc cppflags="-O3 -march=native"
$ spack load zlib cppflags='-O3 -march=native'
==> Error: Unexpected token
['zlib', 'cppflags=-O3', '-march=native']
```
Diffstat (limited to '.flake8')
0 files changed, 0 insertions, 0 deletions