diff options
author | Brian Van Essen <vanessen1@llnl.gov> | 2021-09-26 06:47:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-26 15:47:46 +0200 |
commit | b909560ed5c1f33dd8dfd2dbb1eae1027ada8579 (patch) | |
tree | 367ceeebac24a6a74d7b67a77e9c917c8a14aa59 /var | |
parent | 0e6e9c23a1d35b35cdae01eed3f15cc762cdacf2 (diff) | |
download | spack-b909560ed5c1f33dd8dfd2dbb1eae1027ada8579.tar.gz spack-b909560ed5c1f33dd8dfd2dbb1eae1027ada8579.tar.bz2 spack-b909560ed5c1f33dd8dfd2dbb1eae1027ada8579.tar.xz spack-b909560ed5c1f33dd8dfd2dbb1eae1027ada8579.zip |
Added CMake command to export compiler directories to support emacs LSP mode. (#26118)
Diffstat (limited to 'var')
4 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/aluminum/package.py b/var/spack/repos/builtin/packages/aluminum/package.py index 4bf96ebc80..4dfc8643fc 100644 --- a/var/spack/repos/builtin/packages/aluminum/package.py +++ b/var/spack/repos/builtin/packages/aluminum/package.py @@ -61,6 +61,7 @@ class Aluminum(CMakePackage, CudaPackage, ROCmPackage): spec = self.spec args = [ '-DCMAKE_CXX_STANDARD:STRING=17', + '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DALUMINUM_ENABLE_CUDA:BOOL=%s' % ('+cuda' in spec), '-DALUMINUM_ENABLE_NCCL:BOOL=%s' % ('+nccl' in spec or '+rccl' in spec), '-DALUMINUM_ENABLE_ROCM:BOOL=%s' % ('+rocm' in spec)] diff --git a/var/spack/repos/builtin/packages/dihydrogen/package.py b/var/spack/repos/builtin/packages/dihydrogen/package.py index 63ab74164c..964a46b06a 100644 --- a/var/spack/repos/builtin/packages/dihydrogen/package.py +++ b/var/spack/repos/builtin/packages/dihydrogen/package.py @@ -145,6 +145,7 @@ class Dihydrogen(CMakePackage, CudaPackage, ROCmPackage): args = [ '-DCMAKE_CXX_STANDARD=17', + '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DCMAKE_INSTALL_MESSAGE:STRING=LAZY', '-DBUILD_SHARED_LIBS:BOOL=%s' % ('+shared' in spec), '-DH2_ENABLE_ALUMINUM=%s' % ('+al' in spec), diff --git a/var/spack/repos/builtin/packages/hydrogen/package.py b/var/spack/repos/builtin/packages/hydrogen/package.py index d576f0bee3..ac284d90a5 100644 --- a/var/spack/repos/builtin/packages/hydrogen/package.py +++ b/var/spack/repos/builtin/packages/hydrogen/package.py @@ -146,6 +146,7 @@ class Hydrogen(CMakePackage, CudaPackage, ROCmPackage): args = [ '-DCMAKE_CXX_STANDARD=14', + '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DCMAKE_INSTALL_MESSAGE:STRING=LAZY', '-DBUILD_SHARED_LIBS:BOOL=%s' % ('+shared' in spec), '-DHydrogen_ENABLE_OPENMP:BOOL=%s' % ('+openmp' in spec), diff --git a/var/spack/repos/builtin/packages/lbann/package.py b/var/spack/repos/builtin/packages/lbann/package.py index 59b6eccf72..2966d51bf8 100644 --- a/var/spack/repos/builtin/packages/lbann/package.py +++ b/var/spack/repos/builtin/packages/lbann/package.py @@ -296,6 +296,7 @@ class Lbann(CMakePackage, CudaPackage, ROCmPackage): args = self.common_config_args args.extend([ '-DCMAKE_CXX_STANDARD=17', + '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DLBANN_WITH_CNPY=%s' % ('+numpy' in spec), '-DLBANN_DETERMINISTIC:BOOL=%s' % ('+deterministic' in spec), '-DLBANN_WITH_HWLOC=%s' % ('+hwloc' in spec), |