From df56080303e5ac38c91612ac796e43fbdf84e9f3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 20 Nov 2017 15:42:01 +0530 Subject: [PATCH] Fix building on travis/macOS libunistring detection --- setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.py b/setup.py index 8e4180ed8..7b1849387 100755 --- a/setup.py +++ b/setup.py @@ -211,6 +211,9 @@ def kitty_env(): ] if isosx: ans.ldpaths.extend('-framework Cocoa'.split()) + if is_travis and 'SW' in os.environ: + cflags.append('-I{}/include'.format(os.environ['SW'])) + ans.ldpaths.append('-L{}/lib'.format(os.environ['SW'])) else: ans.ldpaths += ['-lrt'] if '-ldl' not in ans.ldpaths: