diff options
| author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-05-27 01:03:35 +0530 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-06-05 10:50:22 +0000 |
| commit | eb383ef4a2daad1766a8ace3164e6b083c388130 (patch) | |
| tree | a6cab6c9a1069657f140af0a6908b3fcd3a2dfaf /mesonbuild/environment.py | |
| parent | 21dc45dbbb567068ae2dafc9e34fba24e04e0d93 (diff) | |
| download | meson-eb383ef4a2daad1766a8ace3164e6b083c388130.tar.gz | |
Automatically add cross-mingw root and sysroot bindir to WINEPATH
This ensures that all the system DLLs required by executables such as
libstdc++-6.dll can be found out of the box and tests can run
Diffstat (limited to 'mesonbuild/environment.py')
| -rw-r--r-- | mesonbuild/environment.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 37bfe6037..6339570d8 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -1045,6 +1045,12 @@ class CrossBuildInfo: def get_properties(self): return self.config['properties'] + def get_root(self): + return self.get_properties().get('root', None) + + def get_sys_root(self): + return self.get_properties().get('sys_root', None) + # When compiling a cross compiler we use the native compiler for everything. # But not when cross compiling a cross compiler. def need_cross_compiler(self): |
