build tools in CI (#771)

build tools in CI
This commit is contained in:
Arvid Norberg 2016-05-31 17:48:41 -04:00
parent 0583394af7
commit 558c3af360
3 changed files with 12 additions and 2 deletions

View File

@ -105,6 +105,12 @@ script:
fi'
- cd ..
- cd tools
- 'if [ "$variant" != "" ]; then
bjam -j3 warnings-as-errors=on variant=$variant picker-debugging=on $toolset link=shared;
fi'
- cd ..
# build libtorrent separately and install it in a temporary (well known) dir
# we have to do this because on linux the name of the python module is the same
# as the main library, so we cannot stage them to the same directory

View File

@ -75,6 +75,10 @@ build_script:
- cd %ROOT_DIRECTORY%\examples
- b2.exe --hash warnings-as-errors=on -j2 %compiler% address-model=%model% variant=%variant% picker-debugging=on linkflags=%linkflags% include=%include% link=shared
# tools
- cd %ROOT_DIRECTORY%\tools
- b2.exe --hash warnings-as-errors=on -j2 %compiler% address-model=%model% variant=%variant% picker-debugging=on linkflags=%linkflags% include=%include% link=shared
# test
- cd %ROOT_DIRECTORY%\test
- b2.exe --hash -j2 warnings-as-errors=on address-model=%model% win-tests %compiler% variant=%variant% picker-debugging=on link=shared linkflags=%linkflags% include=%include% testing.execute=off

View File

@ -136,9 +136,9 @@ void print_string(std::string& output, std::string str)
if (random_string)
{
static mt19937 random_engine(str_seed);
uniform_int_distribution<boost::uint8_t> d(0, 255);
uniform_int_distribution<> d(0, 255);
for (int i = 0; i < int(str.size()); ++i)
str[i] = d(random_engine);
str[i] = boost::uint8_t(d(random_engine));
print_ascii_number(output, str.size());
output += ':';