From abb954022e771674d12a10f4a6bdb4535054ada4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 20 Jul 2022 11:07:34 +0200 Subject: [PATCH] Fix test not to use conditional dependency declarations --- .../checks/byte-order/buildfile | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/libbuild2-autoconf-tests/checks/byte-order/buildfile b/libbuild2-autoconf-tests/checks/byte-order/buildfile index 1d0346f..69bf6c5 100644 --- a/libbuild2-autoconf-tests/checks/byte-order/buildfile +++ b/libbuild2-autoconf-tests/checks/byte-order/buildfile @@ -8,16 +8,11 @@ ./: exe{driver}: c{driver} -./: h{config}: in{config} +./: exe{driver-posix}: include = ($c.target.system != 'win32-msvc') + +exe{driver-posix}: obje{driver-posix}: c{driver} c.poptions += "-I$out_base" +obje{driver-posix}: c.poptions += -D_POSIX_C_SOURCE -if ($c.target.system != 'win32-msvc') -{ - ./: exe{driver-posix}: obje{driver-posix} - - obje{driver-posix}: c{driver} - { - c.poptions += -D_POSIX_C_SOURCE - } -} +./: h{config}: in{config}