diff options
| author | ruki <[email protected]> | 2023-09-21 22:45:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-09-21 22:45:08 +0800 |
| commit | b607622a00a3bd4d31a6a7feb2ca1b49dd1108cf (patch) | |
| tree | cf47cba6acc437dff86d006e3c99b17637804912 /xmake/rules/c++ | |
| parent | efee9f525906e48699c4bf0eb10cce74d4e7b468 (diff) | |
mark mode.asan as deprecated
Diffstat (limited to 'xmake/rules/c++')
| -rw-r--r-- | xmake/rules/c++/build_sanitizer/config.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/rules/c++/build_sanitizer/config.lua b/xmake/rules/c++/build_sanitizer/config.lua index 38d548004..4f974ef4b 100644 --- a/xmake/rules/c++/build_sanitizer/config.lua +++ b/xmake/rules/c++/build_sanitizer/config.lua @@ -45,6 +45,11 @@ function _add_build_sanitizer(target, sourcekind, checkmode) target:add("ldflags", "-fsanitize=" .. checkmode) target:add("shflags", "-fsanitize=" .. checkmode) end + + -- enable the debug symbols + if not target:get("symbols") then + target:set("symbols", "debug") + end end function main(target, sourcekind) |
