Skip to content

Commit bee5c09

Browse files
committed
Better Windows fix that keeps gimli working on Windows without MSVC
1 parent 859e53c commit bee5c09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/symbolize/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,9 @@ cfg_if::cfg_if! {
489489
any(
490490
target_os = "linux",
491491
target_os = "macos",
492+
windows,
492493
),
494+
not(all(windows, target_env = "msvc", feature = "dbghelp")),
493495
))] {
494496
/// clear_symbol_cache tries to reclaim that cached memory.
495497
/// Note: for now, only the Gimli implementation is able to clear its cache.

0 commit comments

Comments
 (0)