From 995585489750512a28f84b028b3eea30c3a9c075 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 28 Aug 2019 14:43:38 +0200 Subject: Reduce repetition in buildfiles --- libbuild2/c/buildfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libbuild2/c') diff --git a/libbuild2/c/buildfile b/libbuild2/c/buildfile index 39a5d7a..234a0d7 100644 --- a/libbuild2/c/buildfile +++ b/libbuild2/c/buildfile @@ -45,14 +45,9 @@ cross = ($cxx.target.cpu != $build.host.cpu || \ # Windows). It is used as defaults for BUILD2_DEFAULT_C. # if! $cross -{ - obj{init}: cxx.poptions += \ + {obja objs}{init}: cxx.poptions += \ -DBUILD2_NATIVE_C=\"$regex.replace($recall($c.path), '\\', '\\\\')\" - obja{init}: cxx.poptions += -DLIBBUILD2_C_STATIC_BUILD - objs{init}: cxx.poptions += -DLIBBUILD2_C_SHARED_BUILD -} - # Export options. # lib{build2-c}: -- cgit v1.1