diff options
author | Jan Ekström <jeebjp@gmail.com> | 2018-07-08 02:59:17 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-07-08 03:22:09 +0300 |
commit | 4bf9a78b364483f2c4f0ee429510f32f891932bc (patch) | |
tree | 7ea19689ca955ea656cb7ee5366ff9d8b7141514 | |
parent | c75f98e3ab8635c95f3cf2965e039102ee07c869 (diff) | |
download | mpv-4bf9a78b364483f2c4f0ee429510f32f891932bc.tar.bz2 mpv-4bf9a78b364483f2c4f0ee429510f32f891932bc.tar.xz |
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.
-rw-r--r-- | wscript_build.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wscript_build.py b/wscript_build.py index bdb92d322b..89eaa48137 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -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'): |