aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-05-26 00:10:32 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-06-06 07:53:10 +0000
commit0565262be35423b60a69b5df32c4ca485e976b12 (patch)
tree8413d7a49175d5dde389b62b91763c4cf8cd7574 /docs/markdown/snippets
parent3e1a610702adfec51a24a7dfdcba8a0319a795a1 (diff)
downloadmeson-0565262be35423b60a69b5df32c4ca485e976b12.zip
meson-0565262be35423b60a69b5df32c4ca485e976b12.tar.gz
meson-0565262be35423b60a69b5df32c4ca485e976b12.tar.bz2
Add documentation for Builtin options and bitcode
Also add a test that ensures that new base options and compiler options are always documented.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/bitcode_support.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/markdown/snippets/bitcode_support.md b/docs/markdown/snippets/bitcode_support.md
new file mode 100644
index 0000000..a0d7ad9
--- /dev/null
+++ b/docs/markdown/snippets/bitcode_support.md
@@ -0,0 +1,15 @@
+## New base build option for LLVM (Apple) bitcode support
+
+When building with clang on macOS, you can now build your static and shared
+binaries with embedded bitcode by enabling the `b_bitcode` [base
+option](Builtin-options.md#Base_options) by passing `-Db_bitcode=true` to
+Meson.
+
+This is better than passing the options manually in the environment since Meson
+will automatically disable conflicting options such as `b_asneeded`, and will
+disable bitcode support on targets that don't support it such as
+`shared_module()`.
+
+Since this requires support in the linker, it is currently only enabled when
+using Apple ld. In the future it can be extended to clang on other platforms
+too.