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/cxx/buildfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libbuild2/cxx/buildfile') diff --git a/libbuild2/cxx/buildfile b/libbuild2/cxx/buildfile index debb574..f7bd126 100644 --- a/libbuild2/cxx/buildfile +++ b/libbuild2/cxx/buildfile @@ -45,14 +45,9 @@ cross = ($cxx.target.cpu != $build.host.cpu || \ # Windows). It is used as defaults for BUILD2_DEFAULT_CXX. # if! $cross -{ - obj{init}: cxx.poptions += \ + {obja objs}{init}: cxx.poptions += \ -DBUILD2_NATIVE_CXX=\"$regex.replace($recall($cxx.path), '\\', '\\\\')\" - obja{init}: cxx.poptions += -DLIBBUILD2_CXX_STATIC_BUILD - objs{init}: cxx.poptions += -DLIBBUILD2_CXX_SHARED_BUILD -} - # Export options. # lib{build2-cxx}: -- cgit v1.1