aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-11-29 22:00:49 +0200
committerGitHub <noreply@github.com>2017-11-29 22:00:49 +0200
commit5208e6524cef1a4d1107ecc9e41ad6e427604455 (patch)
tree1cdeb36568ae9edf351f4eadd045b56021d2e0f3 /docs
parent2fdfb50da8effc9aa8717ca4c375a94a16074c14 (diff)
parent549e5928fbc8195f881fbef91708f6126f032ae9 (diff)
downloadmeson-5208e6524cef1a4d1107ecc9e41ad6e427604455.zip
meson-5208e6524cef1a4d1107ecc9e41ad6e427604455.tar.gz
meson-5208e6524cef1a4d1107ecc9e41ad6e427604455.tar.bz2
Merge pull request #2701 from dcbaker/submit/better-llvm-docs
Minor LLVM dependency cleanups for the next release
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Dependencies.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/markdown/Dependencies.md b/docs/markdown/Dependencies.md
index dbd21aa..bae3edc 100644
--- a/docs/markdown/Dependencies.md
+++ b/docs/markdown/Dependencies.md
@@ -197,3 +197,32 @@ tools support. You can force one or another via the method keyword:
```meson
wmf_dep = dependency('wmf', method : 'config-tool')
```
+
+## LLVM
+
+Meson has native support for LLVM going back to version LLVM version 3.5.
+It supports a few additional features compared to other config-tool based
+dependencies.
+
+As of 0.44.0 Meson supports the `static` keyword argument for LLVM. Before this
+LLVM >= 3.9 would always dynamically link, while older versions would
+statically link, due to a quirk in `llvm-config`.
+
+### Modules, a.k.a. Components
+
+Meson wraps LLVM's concept of components in it's own modules concept.
+When you need specific components you add them as modules as meson will do the
+right thing:
+
+```meson
+llvm_dep = dependency('llvm', version : '>= 4.0', modules : ['amdgpu'])
+```
+
+As of 0.44.0 it can also take optional modules (these will affect the arguments
+generated for a static link):
+
+```meson
+llvm_dep = dependency(
+ 'llvm', version : '>= 4.0', modules : ['amdgpu'], optional_modules : ['inteljitevents'],
+)
+```