diff --git a/build/Helpers.lua b/build/Helpers.lua index e8bcd1f1..2b47b9aa 100644 --- a/build/Helpers.lua +++ b/build/Helpers.lua @@ -193,7 +193,7 @@ function GccVersion() end function UseCxx11ABI() - if os.istarget("linux") and GccVersion() >= '4.9.0' and _OPTIONS["no-cxx11-abi"] == nil then + if os.istarget("linux") and premake.checkVersion(GccVersion(), '4.9.0') and _OPTIONS["no-cxx11-abi"] == nil then return true end return false @@ -229,4 +229,4 @@ function AddPlatformSpecificFiles(folder, filename) else print "Unknown architecture" end -end \ No newline at end of file +end