Skip to content

Commit

Permalink
Fixed long compile times on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Oct 25, 2024
1 parent 9797c76 commit 7e952f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/desktop_main.nim
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ when enableTerminal:
logCategory "main"

when defined(windows):
import winim
import winim/lean

proc ownsConsole*(): bool =
when defined(windows):
Expand Down
6 changes: 3 additions & 3 deletions src/vfs_local.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import std/[os, options, unicode, strutils]
import misc/[custom_async, custom_logger, util, timer, regex]
import vfs

when defined(windows):
import winim/lean

import nimsumtree/[rope]

{.push gcsafe.}
Expand Down Expand Up @@ -112,9 +115,6 @@ proc fillDirectoryListing(directoryListing: var DirectoryListing, path: string,
except OSError:
discard

when defined(windows):
import winim

method getDirectoryListingImpl*(self: VFSLocal, path: string): Future[DirectoryListing] {.async: (raises: []).} =
if path.len == 0:
when defined(windows):
Expand Down

0 comments on commit 7e952f1

Please sign in to comment.