aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Akemi <der.richter@gmx.de>2018-10-27 17:20:57 +0200
committerGravatar Jan Ekström <jeebjp@gmail.com>2018-10-28 15:48:37 +0200
commit543a3bc0bd60cdc75e1658af24d3d81b2cb5939c (patch)
tree508144f7bb75147210bd0ac094efb163fad683e6
parenteab30807fe6835996105c9afbad63cec0cbc6c5c (diff)
build: don't hardcode swift module name
-rw-r--r--wscript_build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 64560b863d..81da9d9aa6 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -147,11 +147,12 @@ def build(ctx):
tgt = task.outputs[0].abspath()
header = task.outputs[1].abspath()
module = task.outputs[2].abspath()
+ module_name = os.path.basename(module).rsplit(".", 1)[0]
cmd = [ ctx.env.SWIFT ]
cmd.extend(ctx.env.SWIFT_FLAGS)
cmd.extend([
- "-module-name", "macOS_swift",
+ "-module-name", module_name,
"-emit-module-path", module,
"-import-objc-header", bridge,
"-emit-objc-header-path", header,