how do I add libasan flags with genie #2465
Replies: 4 comments 8 replies
-
|
Take a look at scripts/bgfx.lua, you probably want to add those flags to |
Beta Was this translation helpful? Give feedback.
-
|
thanks I'll take a look, will let you know if I find owt...
…On Sat, 10 Apr 2021 at 15:21, pezcode ***@***.***> wrote:
Take a look at scripts/bgfx.lua, you probably want to add those flags to
buildoptions or linkoptions for the right configuration. If you want to
hide this behind a togglable option, you can add one in genie.lua and then
check _OPTIONS.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2465 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFO4SOVLIKRYA5M7APBUY3TIBNHVANCNFSM42WFSAKQ>
.
--
blog bedroomcoders.co.uk <http://bedroomcoders.co.uk>
Free source code and tutorials!
Disclaimer:
By sending an email to ANY of my addresses you are agreeing that:
1. I am by definition, "the intended recipient"
2. All information in the email is mine to do with as I see fit and make
such financial profit, political mileage, or good joke as it lends itself
to. In particular, I may quote it where I please.
3. I may take the contents as representing the views of your company.
4. This overrides any disclaimer or statement of confidentiality that
may be included on your message.
|
Beta Was this translation helpful? Give feedback.
-
|
I added the flags in, which did show me where in 1 place I was sending a vec3 to a uniform causing a stack issue (with a local variable) which was basically harmless, but I might turn my vec3's in my maths routines into vec4's (add a padding float) so that was interesting... however I'm still seeing potential leaks in an unknown module I added in the flags like this would this also add the flags to the bx and bximg compile ? maybe the potential issue is lower down (although that said it only happens with the Vulkan renderer) any ideas would be most appreciated I don't think this is actually a major issue (certainly not a show stopper) but I would like to know what's going on! |
Beta Was this translation helpful? Give feedback.
-
do you mean run or is this some kind of make parameter ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
when running with the GL backend I see no potential leaks
When running with the Vulkan backend I see some potential leaks I'd like to investigate further (at least one of these is either a false positive or not a bgfx issue...) BGFX's own leak detection does not report these.
This is not a "run away" leak as regardless of how long the application runs the size of the potential leak is always the same.
I'd like to be able to temporarily compile all the debug libs with the following
how may I best do this ?
Beta Was this translation helpful? Give feedback.
All reactions