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 f02a441
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 = ""
local osfun
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 f02a441

Please sign in to comment.