Browse Source

Fix naive version comparison

pull/1529/head
josetr 5 years ago committed by GitHub
parent
commit
98f40dc1cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      build/Helpers.lua

4
build/Helpers.lua

@ -193,7 +193,7 @@ function GccVersion() @@ -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) @@ -229,4 +229,4 @@ function AddPlatformSpecificFiles(folder, filename)
else
print "Unknown architecture"
end
end
end

Loading…
Cancel
Save