1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 11:36:03 +01:00
nix/nix-meson-build-support
Sergei Zimmerman 199b6ff3fb
Disable detect_odr_violation for ASan
There's some unfortunate ODR violations that get dianosed with GCC but not Clang
for static inline constexpr variables defined inside the class body:

template<typename T>
struct static_const
{
    static JSON_INLINE_VARIABLE constexpr T value{};
};

This can be ignored pretty much. There is the same problem for std::piecewise_construct:

http://lists.boost.org/Archives/boost/2007/06/123353.php

==2455704==ERROR: AddressSanitizer: odr-violation (0x7efddc460e20):
  [1] size=1 'value' /nix/store/235hvgzcbl06fxy53515q8sr6lljvf68-nlohmann_json-3.11.3/include/nlohmann/detail/meta/cpp_future.hpp:156:45 in /nix/store/pkmljfq97a83dbanr0n64zbm8cyhna33-nix-store-2.33.0pre/lib/libnixstore.so.2.33.0
  [2] size=1 'value' /nix/store/235hvgzcbl06fxy53515q8sr6lljvf68-nlohmann_json-3.11.3/include/nlohmann/detail/meta/cpp_future.hpp:156:45 in /nix/store/gbjpkjj0g8vk20fzlyrwj491gwp6g1qw-nix-util-2.33.0pre/lib/libnixutil.so.2.33.0
2025-10-12 19:16:07 +03:00
..
big-objs meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
common Disable detect_odr_violation for ASan 2025-10-12 19:16:07 +03:00
default-system-cpu meson: Fix nix_system_cpu for MIPS and 32 bit ARM systems 2025-07-27 00:50:53 +03:00
deps-lists meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
export treewide: Bump C++ standard version to C++23 2025-08-19 15:33:27 +03:00
export-all-symbols meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
generate-header meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
libatomic meson: link to libatomic on powerpc-linux 2025-09-10 18:50:35 +02:00
subprojects rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
windows-version flake: Add meson formatter 2025-06-11 22:08:03 +00:00