diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-03-29 22:52:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-29 22:52:14 +0300 |
commit | 571451b521822aea71b8fe154217fc9a5ecfa005 (patch) | |
tree | fbf680b8ca7e52ce83a55f6fbb71244060e74a57 /mesonbuild/modules/windows.py | |
parent | 8cc89e468d4d8cfcafe7afd8884d9884d2aac751 (diff) | |
parent | 87f35d71184722aede59516f31de50411892599b (diff) | |
download | meson-571451b521822aea71b8fe154217fc9a5ecfa005.zip meson-571451b521822aea71b8fe154217fc9a5ecfa005.tar.gz meson-571451b521822aea71b8fe154217fc9a5ecfa005.tar.bz2 |
Merge pull request #1346 from msink/test-mingw
appveyor: run tests against MSYS2-MinGW
Diffstat (limited to 'mesonbuild/modules/windows.py')
-rw-r--r-- | mesonbuild/modules/windows.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py index 8203789..c233d90 100644 --- a/mesonbuild/modules/windows.py +++ b/mesonbuild/modules/windows.py @@ -14,6 +14,7 @@ import os +from .. import mlog from .. import mesonlib, dependencies, build from ..mesonlib import MesonException from . import get_include_args @@ -38,13 +39,18 @@ class WindowsModule(ExtensionModule): for incd in inc_dirs: if not isinstance(incd.held_object, (str, build.IncludeDirs)): raise MesonException('Resource include dirs should be include_directories().') - extra_args += get_include_args(state.environment, inc_dirs) + extra_args += get_include_args(inc_dirs) if comp.id == 'msvc': rescomp = dependencies.ExternalProgram('rc', silent=True) res_args = extra_args + ['/nologo', '/fo@OUTPUT@', '@INPUT@'] suffix = 'res' else: + m = 'Argument {!r} has a space which may not work with windres due to ' \ + 'a MinGW bug: https://sourceware.org/bugzilla/show_bug.cgi?id=4933' + for arg in extra_args: + if ' ' in arg: + mlog.warning(m.format(arg)) # Pick-up env var WINDRES if set. This is often used for specifying # an arch-specific windres. rescomp_name = os.environ.get('WINDRES', 'windres') |