diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-11-30 13:57:57 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-12-09 20:40:29 +0000 |
commit | 54c680c4ba2bdd53147316a64f46612f667065b5 (patch) | |
tree | 0b840225310fd9e2ce50b42dcf25d2b550344701 | |
parent | 272623c5a344d503930e1f8b0807611e1a3eff9f (diff) | |
download | meson-54c680c4ba2bdd53147316a64f46612f667065b5.zip meson-54c680c4ba2bdd53147316a64f46612f667065b5.tar.gz meson-54c680c4ba2bdd53147316a64f46612f667065b5.tar.bz2 |
Apply work-around for windres bug with msys2 clang also
The windres bug with paths with spaces appears irrespective of compiler
-rw-r--r-- | test cases/windows/12 resources with custom targets/meson.build | 2 | ||||
-rw-r--r-- | test cases/windows/5 resources/meson.build | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test cases/windows/12 resources with custom targets/meson.build b/test cases/windows/12 resources with custom targets/meson.build index b1e2b09..282272d 100644 --- a/test cases/windows/12 resources with custom targets/meson.build +++ b/test cases/windows/12 resources with custom targets/meson.build @@ -3,7 +3,7 @@ project('winmain', 'c') # MinGW windres has a bug due to which it doesn't parse args with space properly: # https://github.com/mesonbuild/meson/pull/1346 # https://sourceware.org/bugzilla/show_bug.cgi?id=4933 -if meson.get_compiler('c').get_id() == 'gcc' and host_machine.system() == 'windows' +if ['gcc', 'clang'].contains(meson.get_compiler('c').get_id()) and host_machine.system() == 'windows' # Construct build_to_src and skip this test if it has spaces # because then the -I flag to windres will also have spaces # and we know the test will fail diff --git a/test cases/windows/5 resources/meson.build b/test cases/windows/5 resources/meson.build index ddb7d6e..27b2fcc 100644 --- a/test cases/windows/5 resources/meson.build +++ b/test cases/windows/5 resources/meson.build @@ -3,7 +3,7 @@ project('winmain', 'c') # MinGW windres has a bug due to which it doesn't parse args with space properly: # https://github.com/mesonbuild/meson/pull/1346 # https://sourceware.org/bugzilla/show_bug.cgi?id=4933 -if meson.get_compiler('c').get_id() == 'gcc' and host_machine.system() == 'windows' +if ['gcc', 'clang'].contains(meson.get_compiler('c').get_id()) and host_machine.system() == 'windows' # Construct build_to_src and skip this test if it has spaces # because then the -I flag to windres will also have spaces # and we know the test will fail |