From c97b19321969cce9fd497da083d5a3bfb0392e13 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 2 Sep 2016 14:23:33 +0200 Subject: Exclude win32-utility from non-Windows builds This gets rid of a warning about an empty object file. --- butl/buildfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'butl/buildfile') diff --git a/butl/buildfile b/butl/buildfile index 4ac0672..0f45f42 100644 --- a/butl/buildfile +++ b/butl/buildfile @@ -22,8 +22,14 @@ lib{butl}: \ {hxx cxx}{ triplet } \ {hxx ixx }{ utility } \ {hxx }{ vector-view } \ -{hxx }{ version } \ -{hxx cxx}{ win32-utility } +{hxx }{ version } + +# Exclude these from compilation on non-Windows targets. +# +if ($cxx.target.class == "windows") + lib{butl}: {hxx cxx}{ win32-utility } +else + lib{butl}: file{ win32-utility win32-utility.cxx } # This one is included into sha256.cxx so treat it as file to exclude # from the compilation. -- cgit v1.1