Skip to content

Commit 40ecb8c

Browse files
committed
refactor: remove unused VCL library configurations from CMakeLists.txt
1 parent a533c96 commit 40ecb8c

1 file changed

Lines changed: 0 additions & 50 deletions

File tree

core/CMakeLists.txt

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -150,52 +150,6 @@ else ()
150150
set(ASMLIB_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/main/c/share/asmlib/)
151151
include(${ASMLIB_SOURCE_DIR}CMakeLists.txt)
152152

153-
## We need to compile VCL four different times with different CXX options
154-
## for different instruction sets. As vect.cpp compiles it will produce
155-
## different function names for corresponding instruction sets.
156-
## Results of these compilations are then combined together in a single library.
157-
## This way same library will have a set of functions for each instruction sets.
158-
159-
## Java will then call a dispatcher, which will check instruction set for the runtime
160-
## and fetch method pointer to the relevant implementation.
161-
# SSE 4.1 lib
162-
add_library(questdb-sse4 OBJECT ${VCL_FILES})
163-
target_compile_options(questdb-sse4 PRIVATE "-m64;-msse4.1;-fPIC"
164-
"$<$<CONFIG:DEBUG>:${DEBUG_OPTIONS}>"
165-
"$<$<CONFIG:RELEASE>:${RELEASE_OPTIONS}>")
166-
167-
# AVX2 lib
168-
add_library(questdb-avx2 OBJECT ${VCL_FILES})
169-
target_compile_options(questdb-avx2 PRIVATE "-m64;-mavx2;-fPIC;-mfma"
170-
"$<$<CONFIG:DEBUG>:${DEBUG_OPTIONS}>"
171-
"$<$<CONFIG:RELEASE>:${RELEASE_OPTIONS}>")
172-
173-
#AVX512 lib
174-
add_library(questdb-avx512 OBJECT ${VCL_FILES})
175-
# A_memset, A_memcpy are faster on avx512 but slower on other CPU's on Linux
176-
target_compile_definitions(questdb-avx512 PRIVATE ENABLE_ASMLIB)
177-
target_compile_options(questdb-avx512 PRIVATE "-m64;-mavx512f;-fPIC;-mfma;-mavx512vl;-mavx512bw;-mavx512dq"
178-
"$<$<CONFIG:DEBUG>:${DEBUG_OPTIONS}>"
179-
"$<$<CONFIG:RELEASE>:${RELEASE_OPTIONS}>")
180-
181-
#SSE2 lib
182-
add_library(questdb-sse2 OBJECT ${VCL_FILES_SSE2})
183-
target_link_libraries(
184-
questdb-sse2
185-
questdb-sse4
186-
questdb-avx2
187-
questdb-avx512
188-
)
189-
190-
if (WIN32)
191-
target_compile_options(questdb-sse2 PRIVATE "-m64;-march=core2;-msse2;-Wno-attributes"
192-
"$<$<CONFIG:DEBUG>:${DEBUG_OPTIONS}>"
193-
"$<$<CONFIG:RELEASE>:${RELEASE_OPTIONS}>")
194-
else ()
195-
target_compile_options(questdb-sse2 PRIVATE "-m64;-march=core2;-msse2;-fPIC"
196-
"$<$<CONFIG:DEBUG>:${DEBUG_OPTIONS}>"
197-
"$<$<CONFIG:RELEASE>:${RELEASE_OPTIONS}>")
198-
endif (WIN32)
199153
target_compile_options(questdb PRIVATE "-m64"
200154
"$<$<CONFIG:DEBUG>:${DEBUG_OPTIONS}>"
201155
"$<$<CONFIG:RELEASE>:${RELEASE_OPTIONS}>")
@@ -205,10 +159,6 @@ else ()
205159

206160
target_link_libraries(
207161
questdb
208-
questdb-sse2
209-
questdb-sse4
210-
questdb-avx2
211-
questdb-avx512
212162
asm
213163
)
214164
endif (ARCH_AARCH64)

0 commit comments

Comments
 (0)