Add the FirstThreadOnMacOS trait to 1.13 snapshots

This commit is contained in:
Petr Mrázek 2017-11-23 19:51:12 +01:00
parent 958b27aabb
commit 7d18b3d8a6

View File

@ -150,6 +150,11 @@ for filename in os.listdir('upstream/mojang/versions'):
error = "ERROR: cannot determine single suggested LWJGL version in %s" % mojangVersionFile.id
print(error)
raise Exception(error)
# if it uses LWJGL 3, add the trait that enables starting on first thread on macOS
if is_lwjgl_3:
if not versionFile.addTraits:
versionFile.addTraits = []
versionFile.addTraits.append("FirstThreadOnMacOS")
versionFile.requires = [depentry]
versionFile.order = -2
# process 1.13 arguments into previous version