diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-06-21 02:30:33 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-06-21 02:30:52 +0530 |
commit | 7c90beefde03703a12036ee4a884bafe5b49aad6 (patch) | |
tree | 07160e96ca8eb595933c9b6133e390c92506649b | |
parent | 06ce41b5259e2d9e16cfc1e900f0e4bc44f37e8f (diff) | |
download | meson-7c90beefde03703a12036ee4a884bafe5b49aad6.zip meson-7c90beefde03703a12036ee4a884bafe5b49aad6.tar.gz meson-7c90beefde03703a12036ee4a884bafe5b49aad6.tar.bz2 |
find_library: Also accept extra_dirs as a single string argument
-rw-r--r-- | mesonbuild/compilers.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |