aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/windows.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-05-11 09:14:18 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-11-14 15:57:37 -0800
commit091452f8cd886dedc2bc5d3ec292dcf899989a24 (patch)
tree876f93539a8579babb9b9927845912bbe1cc7a3a /mesonbuild/modules/windows.py
parentf159735c3b82849d0c5d33345b7b07a5f5024428 (diff)
downloadmeson-091452f8cd886dedc2bc5d3ec292dcf899989a24.zip
meson-091452f8cd886dedc2bc5d3ec292dcf899989a24.tar.gz
meson-091452f8cd886dedc2bc5d3ec292dcf899989a24.tar.bz2
modules/python3: allow specifying in the native file
Diffstat (limited to 'mesonbuild/modules/windows.py')
-rw-r--r--mesonbuild/modules/windows.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py
index 96f3a7e..d185d89 100644
--- a/mesonbuild/modules/windows.py
+++ b/mesonbuild/modules/windows.py
@@ -62,9 +62,8 @@ class WindowsModule(ExtensionModule):
# Take windres from the config file after the environment, which is
# in keeping with the expectations on unix-like OSes that
# environment variables trump config files.
- _win = state.environment.config_info.binaries.get('windres')
- if _win:
- rescomp = ExternalProgram('windres', command=_win, silent=True)
+ bins = state.environment.config_info.binaries
+ rescomp = ExternalProgram.from_bin_list(bins, 'windres')
if not rescomp or not rescomp.found():
comp = self.detect_compiler(state.compilers)