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
|
import os
|
||||||
|
|
||||||
proc setupBuildDir(buildDir: string, prefixes: openArray[string]) =
|
proc setupBuildDir(buildDir: string, prefixes: openArray[string]) =
|
||||||
if not defined(windows):
|
|
||||||
return
|
|
||||||
var arch = ""
|
var arch = ""
|
||||||
if system.existsDir(buildDir):
|
if system.existsDir(buildDir):
|
||||||
rmDir buildDir
|
rmDir buildDir
|
||||||
|
|
@ -28,6 +26,10 @@ proc setupBuildDir(buildDir: string, prefixes: openArray[string]) =
|
||||||
else:
|
else:
|
||||||
arch = "32bit"
|
arch = "32bit"
|
||||||
mkDir buildDir
|
mkDir buildDir
|
||||||
|
|
||||||
|
if not defined(windows):
|
||||||
|
return
|
||||||
|
|
||||||
var files = listFiles "lib/" & arch & "/"
|
var files = listFiles "lib/" & arch & "/"
|
||||||
for fpath in files:
|
for fpath in files:
|
||||||
let fname = fpath.extractFileName()
|
let fname = fpath.extractFileName()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue