From 7c90beefde03703a12036ee4a884bafe5b49aad6 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 21 Jun 2016 02:30:33 +0530 Subject: find_library: Also accept extra_dirs as a single string argument --- mesonbuild/compilers.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mesonbuild') diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index 99b420f..be96639 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -821,6 +821,8 @@ void bar() { return 0; } ''' + if extra_dirs and isinstance(extra_dirs, str): + extra_dirs = [extra_dirs] # Gcc + co seem to prefer builtin lib dirs to -L dirs. # Only try to find std libs if no extra dirs specified. if len(extra_dirs) == 0: -- cgit v1.1