File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,6 @@ set(compiler_only
143
143
144
144
add_subdirectory (folly EXCLUDE_FROM_ALL )
145
145
add_subdirectory (fbthrift EXCLUDE_FROM_ALL )
146
- add_subdirectory (fsst EXCLUDE_FROM_ALL )
147
146
if (NOT (ZSTD_FOUND AND PREFER_SYSTEM_ZSTD ))
148
147
add_subdirectory (zstd/build/cmake EXCLUDE_FROM_ALL )
149
148
endif ()
@@ -532,6 +531,17 @@ foreach(tgt dwarfs ${BINARY_TARGETS})
532
531
endif ()
533
532
endforeach ()
534
533
534
+ # not sure why exactly, copied from fsst/CMakeLists.txt
535
+ if (CMAKE_BUILD_TYPE STREQUAL Release )
536
+ set_source_files_properties (fsst/fsst_avx512.cpp PROPERTIES COMPILE_FLAGS -O1 )
537
+ endif ()
538
+
539
+ add_library (
540
+ fsst
541
+ fsst/libfsst.cpp fsst/fsst_avx512.cpp fsst/fsst_avx512_unroll1.inc
542
+ fsst/fsst_avx512_unroll2.inc fsst/fsst_avx512_unroll3.inc
543
+ fsst/fsst_avx512_unroll4.inc )
544
+
535
545
target_include_directories (dwarfs PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} /fsst )
536
546
537
547
target_link_libraries (
Original file line number Diff line number Diff line change 13
13
14
14
g++ -static " $@ " -o " $target " \
15
15
libdwarfs.a \
16
- fsst/ libfsst.a \
16
+ libfsst.a \
17
17
libmetadata_thrift.a \
18
18
libthrift_light.a \
19
19
libxxhash.a \
You can’t perform that action at this time.
0 commit comments