diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-28 14:43:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-28 14:43:38 +0200 |
commit | 995585489750512a28f84b028b3eea30c3a9c075 (patch) | |
tree | c8f57bd54d42daa39539c4b46a8c635ff63ddb5d /libbuild2/cxx/buildfile | |
parent | d0842f4a05ac691dc296347ff872eb7a9b83b42d (diff) |
Reduce repetition in buildfiles
Diffstat (limited to 'libbuild2/cxx/buildfile')
-rw-r--r-- | libbuild2/cxx/buildfile | 7 |
1 files changed, 1 insertions, 6 deletions
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}: |