Skip to content

Commit

Permalink
Even better, just don't download binaries on arm
Browse files Browse the repository at this point in the history
  • Loading branch information
ire4ever1190 committed Apr 27, 2024
1 parent 4d09ba9 commit ee75d7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/choosenimpkg/builder.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os, times, strutils
import os, times

import nimblepkg/[version, cli]
import nimblepkg/common as nimble_common
Expand Down Expand Up @@ -126,7 +126,7 @@ proc build*(extractDir: string, version: Version, params: CliParams) =

var success = false
try:
if fileExists(getCurrentDir() / "bin" / "nim".addFileExt(ExeExt)) and not defined(arm):
if fileExists(getCurrentDir() / "bin" / "nim".addFileExt(ExeExt)):
if not version.isDevel() or not params.latest:
display("Compiler:", "Already built", priority = HighPriority)
success = true
Expand Down
2 changes: 1 addition & 1 deletion src/choosenimpkg/download.nim
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ proc downloadImpl(version: Version, params: CliParams): string =
var outputPath: string

# Use binary builds for Windows and Linux
when defined(Windows) or defined(linux):
when (defined(Windows) or defined(linux)) and not defined(arm):
let os = when defined(linux): "-linux" else: ""
let binUrl = binaryUrl % [$version, os, $arch]
if not needsDownload(params, binUrl, outputPath): return outputPath
Expand Down

0 comments on commit ee75d7b

Please sign in to comment.