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/c/buildfile | |
parent | d0842f4a05ac691dc296347ff872eb7a9b83b42d (diff) |
Reduce repetition in buildfiles
Diffstat (limited to 'libbuild2/c/buildfile')
-rw-r--r-- | libbuild2/c/buildfile | 7 |
1 files changed, 1 insertions, 6 deletions
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}: |