summaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorKatalin Rebhan <me@dblsaiko.net>2025-02-25 18:52:51 +0100
committerDylan Baker <dylan@pnwbakers.com>2025-06-05 14:34:27 -0700
commit6624e4a896c31ca036fe58def4d8ace4a7776715 (patch)
treef34f09d49b3989118e81b3c07c6e4d2d88db6cdf /docs/markdown
parent7c84341e7ad2b9bb73eea85fe02ec155ef575128 (diff)
downloadmeson-6624e4a896c31ca036fe58def4d8ace4a7776715.tar.gz
swift: Pass C base compile options to swiftc
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/snippets/swift-pass-c-compiler-options.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/snippets/swift-pass-c-compiler-options.md b/docs/markdown/snippets/swift-pass-c-compiler-options.md
new file mode 100644
index 000000000..3610a8ea1
--- /dev/null
+++ b/docs/markdown/snippets/swift-pass-c-compiler-options.md
@@ -0,0 +1,8 @@
+## Swift compiler receives select C family compiler options
+
+Meson now passes select few C family (C/Obj-C) compiler options to the
+Swift compiler, notably *-std=*, in order to improve the compatibility
+of C code as interpreted by the C compiler and the Swift compiler.
+
+NB: This does not include any of the options set in the target's
+c_flags.