From 6624e4a896c31ca036fe58def4d8ace4a7776715 Mon Sep 17 00:00:00 2001 From: Katalin Rebhan Date: Tue, 25 Feb 2025 18:52:51 +0100 Subject: swift: Pass C base compile options to swiftc --- docs/markdown/snippets/swift-pass-c-compiler-options.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/markdown/snippets/swift-pass-c-compiler-options.md (limited to 'docs/markdown') 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. -- cgit v1.2.3