Merge pull request #15822 from abyss7/fix-build

Fix build without libraries
This commit is contained in:
Alexander Kuzmenkov 2020-10-15 20:48:53 +03:00 committed by GitHub
commit 41f1fd8fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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