Fix build without libraries

This commit is contained in:
Ivan Lezhankin 2020-10-10 23:41:27 +03:00
parent ce3d18e8c5
commit 7ea393ada8
3 changed files with 13 additions and 12 deletions

1
.gitignore vendored
View File

@ -118,6 +118,7 @@ website/package-lock.json
# clangd cache
/.clangd
/.cache
/compile_commands.json

View File

@ -4,25 +4,24 @@
#if !defined(ARCADIA_BUILD) && USE_STATS
# include <common/types.h>
# include <Common/PODArray.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <common/types.h>
#include <Common/PODArray.h>
# include <algorithm>
# include <iostream>
# include <vector>
namespace DB
{
typedef struct _Variant
struct Variant
{
Float64 x;
Float64 y;
Float64 beats_control;
Float64 best;
} Variant;
};
using Variants = PODArray<Variant>;

View File

@ -1,8 +1,8 @@
#include <gtest/gtest.h>
#include <Functions/abtesting.h>
#include <iostream>
#include <stdio.h>
#if !defined(ARCADIA_BUILD) && USE_STATS
# include <gtest/gtest.h>
using namespace DB;
@ -97,3 +97,4 @@ TEST(BayesAB, gamma)
ASSERT_EQ(0, max);
}
#endif