diff options
author | David Seifert <soap@gentoo.org> | 2024-05-08 00:55:03 +0200 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2024-05-07 22:32:35 -0700 |
commit | 33adc420f318acfa80b6d6bceb79084eded0d3a0 (patch) | |
tree | 6cd9319ada166be820e4788ae7f550631cfc24ac | |
parent | 8cb16b2d6a97514bf17aa8ca2f6bf098cfc5bcbf (diff) | |
download | meson-33adc420f318acfa80b6d6bceb79084eded0d3a0.zip meson-33adc420f318acfa80b6d6bceb79084eded0d3a0.tar.gz meson-33adc420f318acfa80b6d6bceb79084eded0d3a0.tar.bz2 |
cuda: pull in libdir when linking C/C++
* In `CudaDependency._detect_language`, the first detected language is
considered the linking one. Since `nvcc`/`cuda` implicitly know where the
cuda dependency lives, this leads to situations where `cpp` as linking
language is erroneously detected as `cuda` and then misses the `-L` argument.
-rw-r--r-- | mesonbuild/dependencies/cuda.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/cuda.py b/mesonbuild/dependencies/cuda.py index 1a7b3ca..a38e325 100644 --- a/mesonbuild/dependencies/cuda.py +++ b/mesonbuild/dependencies/cuda.py @@ -24,7 +24,7 @@ if T.TYPE_CHECKING: class CudaDependency(SystemDependency): - supported_languages = ['cuda', 'cpp', 'c'] # see also _default_language + supported_languages = ['cpp', 'c', 'cuda'] # see also _default_language def __init__(self, environment: 'Environment', kwargs: T.Dict[str, T.Any]) -> None: compilers = environment.coredata.compilers[self.get_for_machine_from_kwargs(kwargs)] |