Skip to content
Snippets Groups Projects
Commit 23ced4e5 authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

set windows flags if system is cygwin

parent bba15752
Branches
Tags
1 merge request!11decompression/compression for non-imagette data
...@@ -7,7 +7,8 @@ project('cmp_tool', 'c', ...@@ -7,7 +7,8 @@ project('cmp_tool', 'c',
add_project_arguments('-DDEBUGLEVEL=1', language : 'c') add_project_arguments('-DDEBUGLEVEL=1', language : 'c')
if host_machine.system() == 'windows' and meson.get_compiler('c').get_id() == 'gcc' if (host_machine.system() == 'windows' or host_machine.system() == 'cygwin')
and meson.get_compiler('c').get_id() == 'gcc'
# by default, MinGW on win32 behaves as if it ignores __attribute__((packed)), # by default, MinGW on win32 behaves as if it ignores __attribute__((packed)),
# you need to add -mno-ms-bitfields to make it work as expected. # you need to add -mno-ms-bitfields to make it work as expected.
# See: https://wintermade.it/blog/posts/__attribute__packed-on-windows-is-ignored-with-mingw.html # See: https://wintermade.it/blog/posts/__attribute__packed-on-windows-is-ignored-with-mingw.html
......
...@@ -8,5 +8,5 @@ if pytest.found() ...@@ -8,5 +8,5 @@ if pytest.found()
depends : cmp_tool_exe, depends : cmp_tool_exe,
workdir : meson.project_build_root()) workdir : meson.project_build_root())
else else
message('Pytest framework not found! Skipping integration tests.') message('Pytest framework not found! Skipping integration tests. Run pip install pytest.')
endif endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment