From 555df4d863793027df8fca6d3eb6e18295770831 Mon Sep 17 00:00:00 2001 From: Katalin Rebhan Date: Tue, 15 Jul 2025 23:54:12 +0200 Subject: Add swift_module_name target argument Allows explicitly setting the Swift module name. By default, this is set to the target name, which we might want to change for various reasons, for example when it isn't a valid module name, or when building two targets with the same module name (e.g. a host and native variant). --- docs/markdown/snippets/swift-module-name.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/markdown/snippets/swift-module-name.md (limited to 'docs/markdown/snippets/swift-module-name.md') diff --git a/docs/markdown/snippets/swift-module-name.md b/docs/markdown/snippets/swift-module-name.md new file mode 100644 index 0000000..689dd84 --- /dev/null +++ b/docs/markdown/snippets/swift-module-name.md @@ -0,0 +1,9 @@ +## Explicitly setting Swift module name is now supported + +It is now possible to set the Swift module name for a target via the +*swift_module_name* target kwarg, overriding the default inferred from the +target name. + +```meson +lib = library('foo', 'foo.swift', swift_module_name: 'Foo') +``` -- cgit v1.1