aboutsummaryrefslogtreecommitdiff
path: root/src/meson.build
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-06-17 23:47:51 -0700
committerJade Lovelace <lix@jade.fyi>2024-07-31 14:13:39 -0700
commit19ae87e5cec71912c7e7ecec5dc8ff18d18c60ee (patch)
tree11976a4030158b0b3ccd00eb10ab7e867e503811 /src/meson.build
parentc347d3df8f1aebe124b6a3179d4dd83ccadd44b5 (diff)
tree-wide: add support for asan!
What if you could find memory bugs in Lix without really trying very hard? I've had variously scuffed patches to do this, but this is blocked on boost coroutines removal at this point tbh. Change-Id: Id762af076aa06ad51e77a6c17ed10275929ed578
Diffstat (limited to 'src/meson.build')
-rw-r--r--src/meson.build11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/meson.build b/src/meson.build
index 3fc5595b8..e918ae392 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -12,10 +12,19 @@ subdir('libmain')
# libcmd depends on everything
subdir('libcmd')
-
# The rest of the subdirectories aren't separate components,
# just source files in another directory, so we process them here.
+# Static library that just sets default ASan options. It needs to be included
+# in every executable.
+asanoptions = static_library(
+ 'libasanoptions',
+ files('asan-options/asan-options.cc'),
+)
+libasanoptions = declare_dependency(
+ link_whole: asanoptions
+)
+
build_remote_sources = files(
'build-remote/build-remote.cc',
)