gout

A static git page generator
git clone https://git.bracken.jp/gout.git
Log | Files | Refs | README | LICENSE

commit e408690332e79215dc3f8ff1eec7102a602b9569
parent 60a08e6740aa2d7f336fe17821063d411fff5631
Author: Chris Bracken <chris@bracken.jp>
Date:   Fri,  6 Mar 2026 16:29:35 +0900

build: Only enable ASAN on macOS, FreeBSD, and Linux debug builds

Diffstat:
MBUILD.gn | 4+++-
Mbuild/BUILDCONFIG.gn | 5+++++
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/BUILD.gn b/BUILD.gn @@ -16,7 +16,6 @@ config("gout_config") { "//build:debug", "//build:no_optimize", "//build:symbols", - "//build:asan", ] } else { configs += [ @@ -25,6 +24,9 @@ config("gout_config") { "//build:lto", ] } + if (enable_asan) { + configs += [ "//build:asan" ] + } } group("default") { diff --git a/build/BUILDCONFIG.gn b/build/BUILDCONFIG.gn @@ -81,6 +81,11 @@ declare_args() { system_lib_dirs = [] } +# Args derived from core args. +declare_args() { + enable_asan = is_debug && (host_os == "mac" || host_os == "linux" || host_os == "freebsd") +} + # Options use_strip = !is_debug