diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-30 09:30:24 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-30 10:00:35 +0200 |
commit | 3dea3352e4cd414f01ae3d3b2215d6b0f1348d32 (patch) | |
tree | 899581ab605700450c5ca40e32e1ff37b3e9212d /build2/buildfile | |
parent | f89d2c16c1dad9b8d2f3b0e402a47e30521f5a69 (diff) |
Remove backwards-compatibility kludges
Diffstat (limited to 'build2/buildfile')
-rw-r--r-- | build2/buildfile | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/build2/buildfile b/build2/buildfile index f0b50cf..5fc3a89 100644 --- a/build2/buildfile +++ b/build2/buildfile @@ -79,27 +79,17 @@ pkgconfig/{hxx cxx}{ init } \ # Pass our compiler target to be used as build2 host. # -# obj{context}: cxx.poptions += -DBUILD2_HOST_TRIPLET=\"$cxx.target\" -if ($__build2_greater_than_0_2_0_hack__ == "true") -{ - var=cxx.target -} -else -{ - var=cxx.host -} - -obj{b context}: cxx.poptions += -DBUILD2_HOST_TRIPLET='"'$($var)'"' +obj{b context}: cxx.poptions += -DBUILD2_HOST_TRIPLET=\"$cxx.target\" # Load the cli module but only if it's available. This way a distribution # that includes pre-generated files can be built without installing cli. # This is also the reason why above we explicitly spelled out individual # source files instead of using the cli.cxx{} group (it won't be there -# unless the module is loaded). +# unless the module is configured). # using? cli -if! $cli.loaded +if! $cli.configured { define cli: file cli{*}: extension = cli |