Kefu Chai
d01b9f95a0
build: cmake: disable sanitize-address-use-after-scope only when needed
...
we enable sanitizer only in Debug and Sanitize build modes, if we pass
`-fno-sanitize-address-use-after-scope` to compiler when the sanitizer
is not enabled when compiling, Clang complains like:
```
clang-16: error: argument unused during compilation: '-fno-sanitize-address-use-after-scope' [-Werror,-Wunused-command-line-argument]
```
this breaks the build on the build modes where sanitizers are not
enabled.
so, in this change, we only disable the sanitize-address-use-after-scope
sanitizer if the sanitizers are enabled.
Signed-off-by: Kefu Chai <kefu.chai@scylladb.com >
Closes scylladb/scylladb#15868
2023-10-30 20:14:12 +02:00
..
2023-10-19 10:56:38 +03:00
2023-09-21 20:18:49 +03:00
2023-10-26 10:00:37 +03:00
2023-07-03 19:45:17 +03:00
2023-10-24 03:12:58 -04:00
2023-09-26 17:26:14 +03:00
2023-06-22 14:21:03 +03:00
2023-03-08 16:18:23 +02:00
2023-04-27 10:24:46 +03:00
2022-05-13 07:11:58 +02:00
2023-02-28 22:26:43 +02:00
2023-10-30 20:14:12 +02:00
2023-07-03 19:45:17 +03:00
2023-07-03 19:45:17 +03:00
2022-05-13 07:11:58 +02:00
2023-02-19 21:05:45 +02:00
2023-07-14 15:42:58 +03:00
2023-07-14 15:42:58 +03:00
2023-05-10 19:10:29 +03:00
2023-03-12 14:04:34 +02:00
2022-01-18 12:15:18 +01:00
2023-08-17 15:52:48 +03:00
2023-09-25 17:18:53 +02:00
2023-05-02 11:23:58 +03:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2023-06-22 14:21:03 +03:00
2023-06-12 10:41:04 +03:00
2023-06-22 14:21:03 +03:00
2023-06-12 10:41:04 +03:00
2022-05-13 07:11:58 +02:00
2023-07-14 15:42:58 +03:00
2023-07-14 15:42:58 +03:00
2023-09-25 17:18:53 +02:00
2023-09-25 17:18:53 +02:00
2023-04-27 10:24:46 +03:00
2022-01-18 12:15:18 +01:00
2023-02-04 02:13:34 +02:00
2023-01-16 21:10:56 +02:00
2023-09-19 15:02:39 +03:00
2023-09-08 13:23:50 +03:00
2023-05-07 17:17:36 +03:00
2023-05-07 17:17:36 +03:00
2023-05-07 17:17:36 +03:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2023-06-22 14:21:03 +03:00
2023-06-12 10:41:04 +03:00
2023-09-04 19:22:17 +03:00
2023-10-05 22:26:08 +03:00
2023-02-19 21:05:45 +02:00
2023-08-04 07:37:12 +02:00
2023-05-10 15:03:12 +03:00
2023-06-22 14:21:03 +03:00
2023-03-08 16:18:23 +02:00
2023-06-22 14:21:03 +03:00
2023-06-12 10:41:04 +03:00
2023-03-23 01:41:58 +01:00
2023-03-23 01:41:58 +01:00
2023-06-22 14:21:03 +03:00
2023-07-14 18:33:06 +03:00
2023-01-16 21:10:56 +02:00
2023-02-19 21:05:45 +02:00