diff options
| author | atarasov5 <[email protected]> | 2025-10-20 15:38:35 +0300 |
|---|---|---|
| committer | atarasov5 <[email protected]> | 2025-10-20 16:17:47 +0300 |
| commit | dbc560aad32360d83f45d7854b01617b185acae4 (patch) | |
| tree | 7e62f36ae606bcafe1764863bd8c57c29b21b3c0 /yql | |
| parent | 54f11197f61e07f384ee69be4345de116df10864 (diff) | |
YQL-20525: Enable yql/essentials/minikql
YQL-20525: Enable yql/essentials/minikql
commit_hash:f1f589079ced14ead414b564d084bdc39c31dda2
Diffstat (limited to 'yql')
| -rw-r--r-- | yql/essentials/minikql/benchmark/ya.make | 4 | ||||
| -rw-r--r-- | yql/essentials/minikql/codegen/codegen_ut.cpp | 9 | ||||
| -rw-r--r-- | yql/essentials/minikql/compact_hash.h | 4 |
3 files changed, 10 insertions, 7 deletions
diff --git a/yql/essentials/minikql/benchmark/ya.make b/yql/essentials/minikql/benchmark/ya.make index 89bbd1eb7c1..400b092c9bc 100644 --- a/yql/essentials/minikql/benchmark/ya.make +++ b/yql/essentials/minikql/benchmark/ya.make @@ -1,5 +1,7 @@ # There is no reason to run benchmark for windows builds. -IF (NOT OS_WINDOWS) +# There is no reason to run benchmarks for sanitizer builds since +# these targets take too much time to run. +IF (NOT OS_WINDOWS AND NOT SANITIZER_TYPE) RECURSE( pack_num diff --git a/yql/essentials/minikql/codegen/codegen_ut.cpp b/yql/essentials/minikql/codegen/codegen_ut.cpp index 0e142affb0f..05ab4ab0995 100644 --- a/yql/essentials/minikql/codegen/codegen_ut.cpp +++ b/yql/essentials/minikql/codegen/codegen_ut.cpp @@ -8,11 +8,13 @@ using namespace NYql::NCodegen; using namespace llvm; -#ifdef _win_ +#if !defined(_ubsan_enabled_) && !defined(HAVE_VALGRIND) + + #ifdef _win_ constexpr bool SupportsBitCode = false; -#else + #else constexpr bool SupportsBitCode = true; -#endif + #endif extern "C" int mul(int x, int y) { return x * y; @@ -241,7 +243,6 @@ Function* CreateUseExternalFromGeneratedFunction128(const ICodegen::TPtr& codege } // namespace -#if !defined(_ubsan_enabled_) && !defined(HAVE_VALGRIND) Y_UNIT_TEST_SUITE(TCodegenTests) { Y_UNIT_TEST(FibNative) { diff --git a/yql/essentials/minikql/compact_hash.h b/yql/essentials/minikql/compact_hash.h index 9a88fac9cd9..3e89827ffaa 100644 --- a/yql/essentials/minikql/compact_hash.h +++ b/yql/essentials/minikql/compact_hash.h @@ -446,8 +446,8 @@ public: header->Size = oldSize; } - if (std::is_trivially_copyable<T>::value) { - memcpy(list, oldList, sizeof(T) * oldSize); + if constexpr (std::is_trivially_copyable<T>::value) { + memcpy(reinterpret_cast<ui8*>(list), reinterpret_cast<const ui8*>(oldList), sizeof(T) * oldSize); } else { for (size_t i = 0; i < oldSize; ++i) { ::WriteUnaligned<T>(list + i, ::ReadUnaligned<T>(oldList + i)); |
