Browse Source

Merge pull request #234 from vovkasm/fix_osx_detection

Fix osx detection, we do not parse result of os.getversion() in premake ...
pull/236/head
João Matos 11 years ago
parent
commit
c11be1e0f0
  1. 8
      build/Helpers.lua

8
build/Helpers.lua

@ -24,13 +24,11 @@ gcc_buildflags = { "-std=c++11" }
msvc_cpp_defines = { } msvc_cpp_defines = { }
function os.is_osx() function os.is_osx()
local version = os.getversion() return os.is("macosx")
return string.find(version.description, "Mac OS X") ~= nil
end end
function os.is_windows() function os.is_windows()
local version = os.getversion() return os.is("windows")
return string.find(version.description, "Windows") ~= nil
end end
function string.starts(str, start) function string.starts(str, start)
@ -95,4 +93,4 @@ function IncludeDir(dir)
include(dep) include(dep)
end end
end end
end end

Loading…
Cancel
Save