File tree 10 files changed +20
-18
lines changed
10 files changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,18 @@ if (COMPILER_GCC)
49
49
add_definitions ("-fno-tree-loop-distribute-patterns" )
50
50
endif ()
51
51
52
+ # ClickHouse developers may use platform-dependent code under some macro (e.g. `#ifdef ENABLE_MULTITARGET`).
53
+ # If turned ON, this option defines such macro.
54
+ # See `src/Common/TargetSpecific.h`
55
+ option (ENABLE_MULTITARGET_CODE "Enable platform-dependent code" ON )
56
+
57
+ if (ENABLE_MULTITARGET_CODE)
58
+ add_definitions (-DENABLE_MULTITARGET_CODE=1)
59
+ else ()
60
+ add_definitions (-DENABLE_MULTITARGET_CODE=0)
61
+ endif ()
62
+
63
+
52
64
add_subdirectory (Access)
53
65
add_subdirectory (Backups)
54
66
add_subdirectory (Columns)
Original file line number Diff line number Diff line change 1
- #include < Functions /TargetSpecific.h>
1
+ #include < Common /TargetSpecific.h>
2
2
3
3
#include < Common/CpuId.h>
4
4
File renamed without changes.
Original file line number Diff line number Diff line change @@ -96,17 +96,6 @@ if (TARGET ch_contrib::rapidjson)
96
96
target_link_libraries (clickhouse_functions PRIVATE ch_contrib::rapidjson)
97
97
endif ()
98
98
99
- # ClickHouse developers may use platform-dependent code under some macro (e.g. `#ifdef ENABLE_MULTITARGET`).
100
- # If turned ON, this option defines such macro.
101
- # See `src/Functions/TargetSpecific.h`
102
- option (ENABLE_MULTITARGET_CODE "Enable platform-dependent code" ON )
103
-
104
- if (ENABLE_MULTITARGET_CODE)
105
- add_definitions (-DENABLE_MULTITARGET_CODE=1)
106
- else ()
107
- add_definitions (-DENABLE_MULTITARGET_CODE=0)
108
- endif ()
109
-
110
99
add_subdirectory (GatherUtils)
111
100
target_link_libraries (clickhouse_functions PRIVATE clickhouse_functions_gatherutils)
112
101
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
#include < base/map.h>
3
3
4
+ #include < Common/TargetSpecific.h>
4
5
#include < Functions/FunctionHelpers.h>
5
6
#include < Functions/GatherUtils/GatherUtils.h>
6
7
#include < Functions/GatherUtils/Sources.h>
7
8
#include < Functions/IFunction.h>
8
9
#include < Functions/PerformanceAdaptors.h>
9
- #include < Functions/TargetSpecific.h>
10
10
#include < DataTypes/DataTypeString.h>
11
11
#include < DataTypes/DataTypesNumber.h>
12
12
#include < DataTypes/getLeastSupertype.h>
Original file line number Diff line number Diff line change 38
38
#include < Columns/ColumnTuple.h>
39
39
#include < Functions/IFunction.h>
40
40
#include < Functions/FunctionHelpers.h>
41
- #include < Functions/TargetSpecific.h>
42
41
#include < Functions/PerformanceAdaptors.h>
42
+ #include < Common/TargetSpecific.h>
43
43
#include < base/range.h>
44
44
#include < base/bit_cast.h>
45
45
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
+ #include < Common/TargetSpecific.h>
3
4
#include < DataTypes/DataTypesNumber.h>
4
5
#include < Columns/ColumnVector.h>
5
6
#include < Functions/IFunction.h>
6
- #include < Functions/TargetSpecific.h>
7
7
#include < Functions/PerformanceAdaptors.h>
8
8
#include < IO/WriteHelpers.h>
9
9
Original file line number Diff line number Diff line change 14
14
#include < immintrin.h>
15
15
#endif
16
16
17
- #include < Functions/TargetSpecific.h>
17
+ #include < Common/TargetSpecific.h>
18
+
18
19
19
20
namespace DB ::GatherUtils
20
21
{
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
- #include < Functions/TargetSpecific.h>
4
3
#include < Functions/IFunction.h>
5
4
5
+ #include < Common/TargetSpecific.h>
6
6
#include < Common/Stopwatch.h>
7
7
#include < Interpreters/Context.h>
8
8
Original file line number Diff line number Diff line change 6
6
#include < Functions/IFunction.h>
7
7
#include < Functions/FunctionHelpers.h>
8
8
#include < Functions/FunctionFactory.h>
9
- #include < Functions/TargetSpecific.h>
10
9
#include < Functions/PerformanceAdaptors.h>
10
+ #include < Common/TargetSpecific.h>
11
11
#include < base/range.h>
12
12
#include < cmath>
13
13
You can’t perform that action at this time.
0 commit comments