Fix build dir creation
This commit is contained in:
parent
4527d22380
commit
2b8698964a
1 changed files with 4 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue