aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2023-11-03 12:41:08 +0300
committerthegeorg <thegeorg@yandex-team.com>2023-11-03 13:09:53 +0300
commit56b80b3a36ea713d11c31a9c898f5d7e43c84d23 (patch)
tree4d8c0692fad1cee0d8478bcce88456182bf1409e /util
parenta020d3047031674dacf4fb87fbbbf82df29fe152 (diff)
downloadydb-56b80b3a36ea713d11c31a9c898f5d7e43c84d23.tar.gz
Default to clang-cl when targeting Windows
As announced [in Atushka](https://clubs.at.yandex-team.ru/arcadia/29556).
Diffstat (limited to 'util')
-rw-r--r--util/CMakeLists.windows-x86_64.txt3
-rw-r--r--util/charset/CMakeLists.windows-x86_64.txt2
2 files changed, 4 insertions, 1 deletions
diff --git a/util/CMakeLists.windows-x86_64.txt b/util/CMakeLists.windows-x86_64.txt
index fa8e52e246..c906d00cad 100644
--- a/util/CMakeLists.windows-x86_64.txt
+++ b/util/CMakeLists.windows-x86_64.txt
@@ -10,6 +10,9 @@ add_subdirectory(charset)
add_subdirectory(draft)
add_library(yutil)
+target_compile_options(yutil PRIVATE
+ -Wnarrowing
+)
target_link_libraries(yutil PUBLIC
contrib-libs-cxxsupp
util-charset
diff --git a/util/charset/CMakeLists.windows-x86_64.txt b/util/charset/CMakeLists.windows-x86_64.txt
index a13d66250f..b63f9cf047 100644
--- a/util/charset/CMakeLists.windows-x86_64.txt
+++ b/util/charset/CMakeLists.windows-x86_64.txt
@@ -25,5 +25,5 @@ target_sources_custom(util-charset
SRCS
${CMAKE_SOURCE_DIR}/util/charset/wide_sse41.cpp
CUSTOM_FLAGS
- /D__SSE4_1__=1
+ -msse4.1
)