From 425ffddf71f1c26a3cd1093082fa196633848079 Mon Sep 17 00:00:00 2001 From: Syed Daanish Date: Tue, 28 Jul 2026 14:13:25 +0100 Subject: [PATCH] Make debug builds use glibc (to allow sanitizers) --- Makefile | 2 +- flake.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 43ee401..980e9ff 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ MRUBY_CFLAGS ?= -I./libs/mruby/build/host/include MRUBY_LIBS ?= -L./libs/mruby/build/host/lib -lmruby CFLAGS_DEBUG :=\ - -std=c++26 -Wall -Wextra -static \ + -std=c++26 -Wall -Wextra \ -O0 -fno-inline -gsplit-dwarf \ -g -fno-omit-frame-pointer -ffast-math \ -I./include -I./libs/unicode_width diff --git a/flake.nix b/flake.nix index 96bde3c..98a955a 100644 --- a/flake.nix +++ b/flake.nix @@ -88,7 +88,7 @@ mruby = mruby; }; - devShells.${system}.default = pkgs.mkShell { + devShells.${system}.default = hostPkgs.mkShell { inputsFrom = [ crib ]; packages = [