diff options
| author | ruki <[email protected]> | 2023-09-21 22:40:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-09-21 22:40:21 +0800 |
| commit | 8afc0e7ed5d14918fa4fafd450b23263f62ea147 (patch) | |
| tree | 42ae5604bb4582d83028ba811a90ff623e9856a5 /xmake/modules/package/tools/meson.lua | |
| parent | 3d9cf6af8a3fae36dbb5e8fe055a54000ddcadfb (diff) | |
enable asan for package
Diffstat (limited to 'xmake/modules/package/tools/meson.lua')
| -rw-r--r-- | xmake/modules/package/tools/meson.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua index 1a73328cb..29e4cad35 100644 --- a/xmake/modules/package/tools/meson.lua +++ b/xmake/modules/package/tools/meson.lua @@ -291,6 +291,11 @@ function _get_configs(package, configs, opt) table.insert(configs, "-Db_lto=true") end + -- add asan + if package:config("asan") then + table.insert(configs, "-Db_sanitize=address") + end + -- add vs_runtime flags local vs_runtime = package:config("vs_runtime") if package:is_plat("windows") and vs_runtime then |
