Fix build dir creation

This commit is contained in:
Joey Yakimowich-Payne 2020-01-11 20:50:16 -07:00
commit 2b8698964a

View file

@ -18,8 +18,6 @@ requires "nim >= 1.0.0",
import os
proc setupBuildDir(buildDir: string, prefixes: openArray[string]) =
if not defined(windows):
return
var arch = ""
if system.existsDir(buildDir):
rmDir buildDir
@ -28,6 +26,10 @@ proc setupBuildDir(buildDir: string, prefixes: openArray[string]) =
else:
arch = "32bit"
mkDir buildDir
if not defined(windows):
return
var files = listFiles "lib/" & arch & "/"
for fpath in files:
let fname = fpath.extractFileName()