Page MenuHome

MSVC: Preliminary ASAN support.
Needs ReviewPublic

Authored by Ray molenkamp (LazyDodo) on Wed, May 20, 2:25 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Requirements

  1. VS 2019 16.7 or newer (currently in preview)
  2. Asan libraries are off by default in the installer, you need to manually enable them in the C++ workload
  3. Toggle with the cmake option WITH_COMPILER_ASAN as usual (by default enabled in the developer profile)

Soo good news/badnews..

good news: MSVC has asan now!
Bad news: They screwed it up a tiny bit by enforcing alignment requirements on a function that makes no such demands, and it is virtually unusable for blender in it's current shape because of it.

Even if we fixed all alligned alloc in our code to comply with the C11 spec, there's still a few left in external deps like openal

Diff Detail

Repository
rB Blender
Branch
tmp_msvc_asan (branched from master)
Build Status
Buildable 8139
Build 8139: arc lint + arc unit

Event Timeline

Ray molenkamp (LazyDodo) requested review of this revision.Wed, May 20, 2:25 AM
Ray molenkamp (LazyDodo) created this revision.
Ray molenkamp (LazyDodo) planned changes to this revision.Wed, May 20, 2:26 AM

not quite ready for review yet, but too useful not to share.

  • Fix building tests
  • Fix building the various build configurations/