You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #45207 I added sanitizer cmake presets and combined them with ninja-debug preset. It turns out setting ARROW_MIMALLOC=OFF didn't work because features-main (inherited by ninja-debug) sets it to ON and the cmake policy of resolving conflicting variables from multiple presets is "first-win".
…sanitizer cmake presets (#45210)
### Rationale for this change
I gave the reason in #45209
### What changes are included in this PR?
Adjust the inheritance list order and make a lot of simplification/regrouping/reordering for existing presets the way I see fit.
Also introduce a soft rule to order inheritance list: `sanitizer` comes before `features` comes before `base`. Though we can't really mandate such a rule (thus it's "soft") or make it clear in comments (our current cmake dosn't support comment in json), we hope people will notice this pattern and follow it when editing this file.
### Are these changes tested?
Manually tested.
### Are there any user-facing changes?
None.
* GitHub Issue: #45209
Lead-authored-by: Rossi Sun <[email protected]>
Co-authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Rossi Sun <[email protected]>
Describe the enhancement requested
In #45207 I added sanitizer cmake presets and combined them with
ninja-debug
preset. It turns out settingARROW_MIMALLOC=OFF
didn't work becausefeatures-main
(inherited byninja-debug
) sets it toON
and the cmake policy of resolving conflicting variables from multiple presets is "first-win".Quoting cmake doc:
Component(s)
C++
The text was updated successfully, but these errors were encountered: