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. 6
      build/Helpers.lua

6
build/Helpers.lua

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

Loading…
Cancel
Save