Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: Timur Safin <tsafin@tarantool.org>, tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH 2/2] cmake: split UB sanitations into separate flags.
Date: Tue, 16 Jun 2020 00:19:36 +0200	[thread overview]
Message-ID: <dcc4844d-f9f7-8d74-d582-82c5ba006e54@tarantool.org> (raw)
In-Reply-To: <157801d6432b$5f77cdb0$1e676910$@tarantool.org>

Hi! Thanks for the review!

> : diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake
> : index 6c0fa635c..6de8219a0 100644
> : --- a/cmake/compiler.cmake
> : +++ b/cmake/compiler.cmake
> : @@ -269,19 +269,55 @@ macro(enable_tnt_compile_flags)
> :          if (NOT CMAKE_COMPILER_IS_CLANG)
> :              message(FATAL_ERROR "Undefined behaviour sanitizer only
> : available for clang")
> :          else()
> : -            set(SANITIZE_FLAGS "-fsanitize=undefined -fno-sanitize-
> : recover=undefined")
> : +            string(JOIN "," SANITIZE_FLAGS
> : +                "alignment"
> : +                "bool"
> : +                "bounds"
> : +                "builtin"
> : +                "enum"
> : +                "float-cast-overflow"
> : +                "float-divide-by-zero"
> : +                "function"
> : +                "integer-divide-by-zero"
> : +                "return"
> : +                "shift"
> : +                "unreachable"
> : +                "vla-bound"
> : +            )
> : +
> 
> You know, every time I see (unnecessary) quoted strings inside of cmake 
> lists I want to run and fix it immediately. Because there is no actual
> need to quote them - in cmake almost everything is string literal at the end
> 
> Thus I tried to make this construction compacter and less verbose, e.g.

I didn't know the quotes are not needed. Nice! Applied your diff.

  reply	other threads:[~2020-06-15 22:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-14 16:24 [Tarantool-patches] [PATCH 0/2] ASAN build Vladislav Shpilevoy
2020-06-14 16:24 ` [Tarantool-patches] [PATCH 1/2] sql: don't build sql as a separate library Vladislav Shpilevoy
2020-06-15 15:42   ` Timur Safin
2020-06-14 16:24 ` [Tarantool-patches] [PATCH 2/2] cmake: split UB sanitations into separate flags Vladislav Shpilevoy
2020-06-15 15:41   ` Timur Safin
2020-06-15 22:19     ` Vladislav Shpilevoy [this message]
2020-06-15 14:01 ` [Tarantool-patches] [PATCH 0/2] ASAN build Alexander Turenko
2020-06-15 22:21   ` Vladislav Shpilevoy
2020-06-15 23:04     ` Alexander Turenko
2020-06-15 23:15       ` Vladislav Shpilevoy
2020-06-15 15:43 ` Timur Safin
2020-06-16  8:56 ` Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dcc4844d-f9f7-8d74-d582-82c5ba006e54@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --cc=tsafin@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH 2/2] cmake: split UB sanitations into separate flags.' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox