diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2019-05-08 14:39:58 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-05-20 11:29:17 -0700 |
commit | 58870fda1666c43a8bb793b52f658e37f4d51c67 (patch) | |
tree | ec0aeef775ee287271413f3ecd38c6f4d8d9d361 /mesonbuild/modules/windows.py | |
parent | cf662ded46076c053ee1d30761fdc6d8a7b089a4 (diff) | |
download | meson-58870fda1666c43a8bb793b52f658e37f4d51c67.zip meson-58870fda1666c43a8bb793b52f658e37f4d51c67.tar.gz meson-58870fda1666c43a8bb793b52f658e37f4d51c67.tar.bz2 |
Remove compilers from ModuleState object
It doesn't make much sense to have this and not also have
cross-compilers (so any use of this is already pretty suspect as
probably wrong when cross-compiling).
This information is accessible anyhow via environment.coredata.
Diffstat (limited to 'mesonbuild/modules/windows.py')
-rw-r--r-- | mesonbuild/modules/windows.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py index e2fd9a8..3b4eb15 100644 --- a/mesonbuild/modules/windows.py +++ b/mesonbuild/modules/windows.py @@ -50,7 +50,7 @@ class WindowsModule(ExtensionModule): rescomp = ExternalProgram.from_bin_list(state.environment.binaries.host, 'windres') if not rescomp or not rescomp.found(): - comp = self.detect_compiler(state.compilers) + comp = self.detect_compiler(state.environment.coredata.compilers) if comp.id in {'msvc', 'clang-cl', 'intel-cl'}: rescomp = ExternalProgram('rc', silent=True) else: |