diff options
author | Akemi <der.richter@gmx.de> | 2018-03-09 14:05:38 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-03-11 22:44:26 -0700 |
commit | 12b90e744dd220a3386a8977138fba28708c8d21 (patch) | |
tree | c15fbe457f3649453f04b65774841c93c82f5161 /waftools/detections | |
parent | 047eb1b914eb07a79d1a4595d2641290638609a2 (diff) | |
download | mpv-12b90e744dd220a3386a8977138fba28708c8d21.tar.bz2 mpv-12b90e744dd220a3386a8977138fba28708c8d21.tar.xz |
build: fix swift build with waf 1.8.4
with older waf versions a node doesn't return an absolute path but just
a relative one. fix this by explicitly requesting an absolute one.
Fixes #5604
Diffstat (limited to 'waftools/detections')
-rw-r--r-- | waftools/detections/compiler_swift.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/waftools/detections/compiler_swift.py b/waftools/detections/compiler_swift.py index 2e24362ecf..9b0e06ed8a 100644 --- a/waftools/detections/compiler_swift.py +++ b/waftools/detections/compiler_swift.py @@ -38,8 +38,8 @@ def __find_swift_library(ctx): for path in swift_library_paths: swift_library = ctx.root.find_dir([dev_path, path]) if swift_library is not None: - ctx.end_msg(swift_library) - __add_swift_library_linking_flags(ctx, swift_library) + ctx.end_msg(swift_library.abspath()) + __add_swift_library_linking_flags(ctx, swift_library.abspath()) return ctx.end_msg(False) |