Thomas Heijligen has uploaded this change for review.
meson: relocate add_project_arguments() for IS_WINDOWS
Change-Id: I6afb65fabf858449f2706bf250588225a94c1871
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
---
M meson.build
1 file changed, 5 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/27/63827/1
diff --git a/meson.build b/meson.build
index f8ca1d3..371cf6b 100644
--- a/meson.build
+++ b/meson.build
@@ -29,12 +29,6 @@
add_project_arguments('-D_BSD_SOURCE', language : 'c') # required for glibc < v2.19
add_project_arguments('-DFLASHROM_VERSION="' + meson.project_version() + '"', language : 'c')
-if host_machine.system() in ['cygwin', 'windows']
- add_project_arguments('-DIS_WINDOWS=1', language : 'c')
-else
- add_project_arguments('-DIS_WINDOWS=0', language : 'c')
-endif
-
# get defaults from configure
config_atahpt = get_option('config_atahpt')
config_atapromise = get_option('config_atapromise')
@@ -134,6 +128,11 @@
if cc.check_header('sys/utsname.h')
add_project_arguments('-DHAVE_UTSNAME=1', language : 'c')
endif
+if host_machine.system() in ['cygwin', 'windows']
+ add_project_arguments('-DIS_WINDOWS=1', language : 'c')
+else
+ add_project_arguments('-DIS_WINDOWS=0', language : 'c')
+endif
srcs += 'platform/memaccess.c'
To view, visit change 63827. To unsubscribe, or for help writing mail filters, visit settings.