Skip to content

Commit

Permalink
detectOS scoping bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 16, 2020
1 parent 388614b commit 93cd78e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bot/precompile_include.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,17 @@ allos_funs = [
Sys.isnetbsd,
Sys.isopenbsd,
Sys.isjsvm]
os = ""
osfun = allos_funs[1] # temp
for osfun in allos_funs
if osfun()
os = string(osfun)[3:end]
break
end
end
if os == ""
@error "os is not detected"
end
return os, osfun
end
################################################################
Expand Down

0 comments on commit 93cd78e

Please sign in to comment.