diff --git a/waftools/generators/sources.py b/waftools/generators/sources.py index b7766cc1b6..0b83432bc1 100644 --- a/waftools/generators/sources.py +++ b/waftools/generators/sources.py @@ -72,6 +72,8 @@ def __wayland_protocol_header__(ctx, **kwargs): ) @TaskGen.feature('cprogram') +@TaskGen.feature('cshlib') +@TaskGen.feature('cstlib') @TaskGen.feature('apply_link') def handle_add_object(tgen): if getattr(tgen, 'add_object', None): diff --git a/wscript_build.py b/wscript_build.py index efd9dc8424..4627a9fcd5 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -644,6 +644,7 @@ def build(ctx): "target": "mpv", "source": ctx.filtered_sources(sources), "use": ctx.dependencies_use(), + "add_object": "osdep/macOS_swift.o", "includes": [ctx.bldnode.abspath(), ctx.srcnode.abspath()] + \ ctx.dependencies_includes(), "features": features,