[BE] Allow disabling USE_MIMALLOC on Windows and AArch64 (#199064)
`set(USE_MIMALLOC ON)` created a normal variable that shadowed the cached option, so `-DUSE_MIMALLOC=OFF` was ignored on those platforms. Compute the platform default into `USE_MIMALLOC_DEFAULT` and pass it to `option()` instead, following pattern established by `USE_LLVM_BOLT` Pull Request resolved: https://github.com/pytorch/pytorch/pull/199064 Approved by: https://github.com/Skylion007
N
Nikita Shulga committed
e4112a13896440187e2197161bf2d4d6e94ab634
Parent: 5b87ef4
Committed by PyTorch MergeBot <pytorchmergebot@users.noreply.github.com>
on 10/1/2026, 5:13:57 AM