aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerion Entrup <32870336+gerion0@users.noreply.github.com>2020-04-04 12:36:03 +0200
committerGitHub <noreply@github.com>2020-04-04 13:36:03 +0300
commit2cefe8fd41c5025fd4c1f17d63c7b36bc58d6e36 (patch)
tree31dd7512ce7b6717c7da53f5b51801e70b0a0ee9
parent2cfbb36a848d9a730a3318cec34789902ce27658 (diff)
downloadmeson-2cefe8fd41c5025fd4c1f17d63c7b36bc58d6e36.zip
meson-2cefe8fd41c5025fd4c1f17d63c7b36bc58d6e36.tar.gz
meson-2cefe8fd41c5025fd4c1f17d63c7b36bc58d6e36.tar.bz2
docs: add LLVM tool section to dependencies [skip ci]
-rw-r--r--docs/markdown/Dependencies.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/markdown/Dependencies.md b/docs/markdown/Dependencies.md
index 05c97e5..17c9991 100644
--- a/docs/markdown/Dependencies.md
+++ b/docs/markdown/Dependencies.md
@@ -395,6 +395,17 @@ llvm_dep = dependency(
)
```
+### Using LLVM tools
+When using LLVM as library but also needing its tools, it is often beneficial to use the same version.
+This can partially be achieved with the `version` argument of `find_program()`.
+However, distributions tend to package different LLVM versions in rather different ways.
+Therefore, it is often better to use the llvm dependency directly to retrieve the tools:
+
+```meson
+llvm_dep = dependency('llvm', version : ['>= 8', '< 9'])
+llvm_link = find_program(llvm_dep.get_variable(configtool: 'bindir') / 'llvm-link')
+```
+
## MPI
*(added 0.42.0)*