summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/native_compiler_not_required.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/snippets/native_compiler_not_required.md')
-rw-r--r--docs/markdown/snippets/native_compiler_not_required.md20
1 files changed, 0 insertions, 20 deletions
diff --git a/docs/markdown/snippets/native_compiler_not_required.md b/docs/markdown/snippets/native_compiler_not_required.md
deleted file mode 100644
index 331b3c759..000000000
--- a/docs/markdown/snippets/native_compiler_not_required.md
+++ /dev/null
@@ -1,20 +0,0 @@
-## Native (build machine) compilers not always required
-
-`add_languages()` gained a `native:` keyword, indicating if a native or cross
-compiler is to be used.
-
-For the benefit of existing simple build definitions which don't contain any
-`native: true` targets, without breaking backwards compatibility for build
-definitions which assume that the native compiler is available after
-`add_languages()`, if the `native:` keyword is absent the languages may be used
-for either the build or host machine, but are never required for the build
-machine.
-
-This changes the behaviour of the following meson fragment (when cross-compiling
-but a native compiler is not available) from reporting an error at
-`add_language` to reporting an error at `executable`.
-
-```
-add_language('c')
-executable('main', 'main.c', native: true)
-```