asan in flake

This commit is contained in:
Green Sky 2024-01-14 21:48:41 +01:00
parent 565aa4b7eb
commit 18ca88a0d4
No known key found for this signature in database
2 changed files with 8 additions and 0 deletions

View File

@ -55,12 +55,19 @@
libsodium libsodium
] ++ self.packages.${system}.default.dlopenBuildInputs; ] ++ self.packages.${system}.default.dlopenBuildInputs;
cmakeFlags = [
"TOMATO_ASAN=1"
"CMAKE_BUILD_TYPE=RelWithDebInfo"
];
# TODO: replace with install command # TODO: replace with install command
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
mv bin/tomato $out/bin mv bin/tomato $out/bin
''; '';
dontStrip = true;
# copied from nixpkgs's SDL2 default.nix # copied from nixpkgs's SDL2 default.nix
# SDL is weird in that instead of just dynamically linking with # SDL is weird in that instead of just dynamically linking with
# libraries when you `--enable-*` (or when `configure` finds) them # libraries when you `--enable-*` (or when `configure` finds) them

View File

@ -520,6 +520,7 @@ void ChatGui4::render(float time_delta) {
//} else if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) { //} else if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) {
} else if (ImGui::BeginPopupContextItem(nullptr, ImGuiMouseButton_Right)) { } else if (ImGui::BeginPopupContextItem(nullptr, ImGuiMouseButton_Right)) {
const static std::vector<const char*> image_mime_types { const static std::vector<const char*> image_mime_types {
// add apng?
"image/png", "image/png",
"image/webp", "image/webp",
"image/gif", "image/gif",