wscript_build: fixup swift include parameter to point to source root

Fixes compilation of the swift components with
`--variant="random_string"`, in which case "." is not the source
directory.
This commit is contained in:
Jan Ekström 2018-07-08 02:59:17 +03:00
parent c75f98e3ab
commit 4bf9a78b36
1 changed files with 2 additions and 2 deletions

View File

@ -150,8 +150,8 @@ def build(ctx):
cmd = ('%s %s -module-name macOS_swift -emit-module-path %s '
'-import-objc-header %s -emit-objc-header-path %s -o %s %s '
'-I. -I..') % (ctx.env.SWIFT, ctx.env.SWIFT_FLAGS, module,
bridge, header, tgt, src)
'-I. -I%s') % (ctx.env.SWIFT, ctx.env.SWIFT_FLAGS, module,
bridge, header, tgt, src, ctx.srcnode.abspath())
return task.exec_command(cmd)
if ctx.dependency_satisfied('macos-cocoa-cb'):