Skip to content

Fixed address sanitizer flags when using clang on windows#1632

Open
SergioRZMasson wants to merge 3 commits intoBabylonJS:masterfrom
SergioRZMasson:fix-address-sanitizer-windows
Open

Fixed address sanitizer flags when using clang on windows#1632
SergioRZMasson wants to merge 3 commits intoBabylonJS:masterfrom
SergioRZMasson:fix-address-sanitizer-windows

Conversation

@SergioRZMasson
Copy link
Contributor

Fixed address sanitizer flags when using clang on windows.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the sanitizer configuration in the top-level CMake to avoid enabling Clang’s vptr sanitizer on Windows, preventing invalid -fsanitize= combinations when building with Clang on that platform.

Changes:

  • Guard vptr sanitizer inclusion behind NOT WIN32 when using Clang.
  • Keep existing Clang-only sanitizer additions (e.g., fdsan on Android) unchanged.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SergioRZMasson SergioRZMasson enabled auto-merge (squash) March 17, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants