spack/var/spack
Dr Owain Kenway 9629f571bc
llvm-flang: Only build offload code if cuda enabled (#17466)
* llvm-flang Only build offload code if cuda enabled

The current version executes `cmake(*args)` always as part of the post install.  If device offload is not part of the build, this results in referencing `args` without it being set and the error:

```
==> Error: UnboundLocalError: local variable 'args' referenced before assignment

```

Looking at prevoous version of `llvm-package.py` this whole routine appears to be only required for offload, some indent `cmake/make/install` to be under the `if`.

* Update package.py

Add comment
2020-07-11 09:02:53 -05:00
..
gpg
gpg.mock
mock_configs/site_spackconfig
repos llvm-flang: Only build offload code if cuda enabled (#17466) 2020-07-11 09:02:53 -05:00