aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/swift-pass-c-compiler-options.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/snippets/swift-pass-c-compiler-options.md')
-rw-r--r--docs/markdown/snippets/swift-pass-c-compiler-options.md9
1 files changed, 9 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 0000000..90904b9
--- /dev/null
+++ b/docs/markdown/snippets/swift-pass-c-compiler-options.md
@@ -0,0 +1,9 @@
+## Swift compiler receives select C family compiler options
+
+Meson now passes select few C family (C/C++/Obj-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.