From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp39.i.mail.ru (smtp39.i.mail.ru [94.100.177.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 4D6FC469710 for ; Sat, 30 May 2020 01:36:22 +0300 (MSK) References: <645228196cb289f4bbf8e1df47f17ea958cd9237.1590622225.git.v.shpilevoy@tarantool.org> <20200529085324.GA74017@pony.bronevichok.ru> From: Vladislav Shpilevoy Message-ID: <9257939d-1791-a4ee-0c56-d0f27e30c398@tarantool.org> Date: Sat, 30 May 2020 00:36:19 +0200 MIME-Version: 1.0 In-Reply-To: <20200529085324.GA74017@pony.bronevichok.ru> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH v2 03/10] cmake: add option ENABLE_UB_SANITIZER List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Bronnikov Cc: tarantool-patches@dev.tarantool.org Hi! Thanks for the comment! On 29/05/2020 10:53, Sergey Bronnikov wrote: > Vlad, > > thanks for the patch! > > On 01:32 Thu 28 May , Vladislav Shpilevoy wrote: > > > >> diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake >> index ce3e7e506..373bcd3b0 100644 >> --- a/cmake/compiler.cmake >> +++ b/cmake/compiler.cmake >> @@ -238,6 +238,8 @@ endif() >> >> option(ENABLE_WERROR "Make all compiler warnings into errors" OFF) >> >> +option(ENABLE_UB_SANITIZER "Make the compiler generate runtime code to perform undefined behaviour checks" OFF) > > It would be useful to add ENABLE_UB_SANITIZER option to a list "options" > in a root CMakeLists.txt. cmake shows options from this list and it's > status at the end of output. I didn't even know that the option list existed, nice. Added: ==================== diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d80b6806..e49317f8a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -571,7 +571,7 @@ set(PREFIX ${CMAKE_INSTALL_PREFIX}) set(options PACKAGE VERSION BUILD C_COMPILER CXX_COMPILER C_FLAGS CXX_FLAGS PREFIX ENABLE_SSE2 ENABLE_AVX - ENABLE_GCOV ENABLE_GPROF ENABLE_VALGRIND ENABLE_ASAN + ENABLE_GCOV ENABLE_GPROF ENABLE_VALGRIND ENABLE_ASAN ENABLE_UB_SANITIZER ENABLE_BACKTRACE ENABLE_DOC ENABLE_DIST