diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2022-07-14 00:01:39 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-07-14 00:01:39 -0400 |
| commit | 5851c133a0d336c2f7cef2f7d155e30f9fcc5d9a (patch) | |
| tree | 5d7df67f74f899f3dc3e7f681b2413a63d1c9bcd /docs/markdown/Cross-compilation.md | |
| parent | 69131e724269b3ada3a9058a2f1722ddd0617583 (diff) | |
| download | meson-5851c133a0d336c2f7cef2f7d155e30f9fcc5d9a.tar.gz | |
docs: add some function linkification in code snippets
Let people easily find the documentation for concepts we are trying to
teach.
Diffstat (limited to 'docs/markdown/Cross-compilation.md')
| -rw-r--r-- | docs/markdown/Cross-compilation.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/markdown/Cross-compilation.md b/docs/markdown/Cross-compilation.md index e44b4ddc6..0f982d80f 100644 --- a/docs/markdown/Cross-compilation.md +++ b/docs/markdown/Cross-compilation.md @@ -262,16 +262,16 @@ The main *meson* object provides two functions to determine cross compilation status. ```meson -meson.is_cross_build() # returns true when cross compiling -meson.can_run_host_binaries() # returns true if the host binaries can be run, either with a wrapper or natively +[[#meson.is_cross_build]] # returns true when cross compiling +[[#meson.can_run_host_binaries]] # returns true if the host binaries can be run, either with a wrapper or natively ``` You can run system checks on both the system compiler or the cross compiler. You just have to specify which one to use. ```meson -build_compiler = meson.get_compiler('c', native : true) -host_compiler = meson.get_compiler('c', native : false) +build_compiler = [[#meson.get_compiler]]('c', native : true) +host_compiler = [[#meson.get_compiler]]('c', native : false) build_int_size = build_compiler.sizeof('int') host_int_size = host_compiler.sizeof('int') |
