To answer https://stackoverflow.com/questions/74434312/clang-32bit-with-address-sanitizer-with-nix and NixOS/nixpkgs#201199
$ nix build 'git+https://gist.github.com/tobiasBora/0952c923d3cd892e41fbc3ef025ac020?ref=main#hello'
$ file ./result/bin/a.out
./result/bin/a.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, not stripped
$ ./result/bin/a.out
Hello world
=================================================================
==548464==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 7 byte(s) in 1 object(s) allocated from:
#0 0x40c4f2 (/nix/store/3i0ipj0zwpjm8g1fslvfjb5dng4bd9s0--/bin/a.out+0x40c4f2)
#1 0x43b858 (/nix/store/3i0ipj0zwpjm8g1fslvfjb5dng4bd9s0--/bin/a.out+0x43b858)
#2 0x7f381db5624d (/nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/libc.so.6+0x2924d) (BuildId: 2bb226bc600b443958c7566207d0d02f8345e6ea)
SUMMARY: LeakSanitizer: 7 byte(s) leaked in 1 allocation(s).
$ nix build 'git+https://gist.github.com/tobiasBora/0952c923d3cd892e41fbc3ef025ac020?ref=main#hello-32'
$ file ./result/bin/a.out
./result/bin/a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /nix/store/bzw74a7dla8iqk2h8wshwi03fbgj2c5h-glibc-2.35-163/lib/ld-linux.so.2, for GNU/Linux 2.6.32, not stripped
$ ./result/bin/a.out
Hello world
=================================================================
==554039==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 7 byte(s) in 1 object(s) allocated from:
#0 0x8055779 (/nix/store/yh4klla6n8c9flgcxd7r05zj705kycdl--/bin/a.out+0x8055779)
#1 0x8094238 (/nix/store/yh4klla6n8c9flgcxd7r05zj705kycdl--/bin/a.out+0x8094238)
#2 0xf7c102f9 (/nix/store/bzw74a7dla8iqk2h8wshwi03fbgj2c5h-glibc-2.35-163/lib/libc.so.6+0x212f9) (BuildId: 0fc69f6f66391d65b1e33788a951319bda8ba1d4)
SUMMARY: LeakSanitizer: 7 byte(s) leaked in 1 allocation(s).