From c9cde47347bf473b7938961a0e51e8c740384ac6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 Mar 2016 11:03:56 +0200 Subject: Temporarily make buildfiles compatible with build2 0.2.0 --- build2/buildfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'build2/buildfile') diff --git a/build2/buildfile b/build2/buildfile index fa68657..2cf322b 100644 --- a/build2/buildfile +++ b/build2/buildfile @@ -64,7 +64,17 @@ $libs # Pass our compiler target to be used as build2 host. # -obj{context}: cxx.poptions += -DBUILD2_HOST_TRIPLET=\"$cxx.target\" +# 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{context}: cxx.poptions += -DBUILD2_HOST_TRIPLET='"'$($var)'"' # 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. -- cgit v1.1