From 2720b45ef0ca9fd58c11fd9b4f000e1cf3a0819d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 29 Aug 2016 19:31:16 +0200 Subject: Implement initial support for library versioning Currently we only support platform-independent versions that get appended to the library name. The magic incantation is this: lib{foo}: bin.lib.version = @-1.2 This will produce libfoo-1.2.so, libfoo-1.2.dll, etc. In the future we will support things like this: lib{foo}: bin.lib.version = linux@1.2.3 freebsd@1.2 windows@1.2 --- build2/dist/operation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/dist') diff --git a/build2/dist/operation.cxx b/build2/dist/operation.cxx index bbd7357..d03fe28 100644 --- a/build2/dist/operation.cxx +++ b/build2/dist/operation.cxx @@ -397,7 +397,7 @@ namespace build2 // Delete old archive for good measure. // path ap (root / path (a)); - if (file_exists (ap)) + if (file_exists (ap, false)) rmfile (ap); // Use zip for .zip archives. Everything else goes to tar in the -- cgit v1.1