From a5592d2ddbce898766dd103ae9a4fe6887ab5209 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 10 Mar 2016 15:26:01 +0200 Subject: Set build.host.* variables --- build2/buildfile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build2/buildfile') diff --git a/build2/buildfile b/build2/buildfile index 9f2f19e..6c5f773 100644 --- a/build2/buildfile +++ b/build2/buildfile @@ -60,6 +60,10 @@ install/{hxx }{ utility } \ test/{hxx cxx}{ rule } \ $libs +# Pass our compiler target to be used as build2 host. +# +obj{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 -- cgit v1.1