From 4bf9a78b364483f2c4f0ee429510f32f891932bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Sun, 8 Jul 2018 02:59:17 +0300 Subject: 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. --- wscript_build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wscript_build.py') 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'): -- cgit v1.2.3