Skip to content

Commit

Permalink
update bundle logic, fix windows install
Browse files Browse the repository at this point in the history
  • Loading branch information
daanx committed May 31, 2021
1 parent 11d813c commit 32fb449
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions util/bundle.kk
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,14 @@ fun copy-kklib( variant : variant, libdir : path, cc : string, version : string
val vardir = cc ++ "-" ++ variant.show
val objdir = libdir / vardir
val outdir = "out" / version / vardir
val kklib = if (get-os-name()=="windows") then "kklib.obj" else "kklib.o"
ensure-dir(objdir)
copy-file-to-dir( outdir / kklib, objdir )
val all = list-directory(outdir)
val files = all.filter(fn(f){ !is-directory(f) })
val objs = files.filter(fn(f){
val ext = f.extname
((f.basename.starts-with("std_").bool && ext != "core")
|| ext == "a" || ext == "lib" || ext == "o" || ext == "obj")
((f.basename.starts-with("std_").bool && ext != "core") || ext == "a" || ext == "lib" )
})
objs.foreach fn(obj){
// println("copy " ++ obj.string)
Expand Down
2 changes: 1 addition & 1 deletion util/install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ REM ---------------------------------------------------------
REM Install Clang if needed
REM ---------------------------------------------------------

where /q clang-clx
where /q clang-cl
if not errorlevel 1 goto done_clang

echo.
Expand Down

0 comments on commit 32fb449

Please sign in to comment.