{"push_id":788418302,"size":1,"distinct_size":1,"ref":"refs/heads/cce-84","head":"793518dd3d1937cdeac80c0a4b049c24e5c78ad8","before":"d5962022a3553a3b453006995de88a064e4547d7","commits":[{"sha":"793518dd3d1937cdeac80c0a4b049c24e5c78ad8","author":{"email":"a0eed57aaedf007a763cbac2dd65f90f9fe7ec18@gmail.com","name":"Elliot Ronaghan"},"message":"Update chplenv compiler version comparisons\n\nA while back we changed get_compiler_version to return a named tuple instead of\na float because floating point comparison didn't work correctly for things like\ncomparing 4.1 to 4.10. This updates get_compiler_version to include the\nrevision and build in the tuple returned just in case we need it in the future.\nIt also moves the regex logic that was in get_compiler_version() into\nCompVersion() so clients can use it to compare against values returned by\nget_compiler_version()\n\nThis converts comparisons against major and then minor number to just compare\nagainst a compiler version tuple.\n\nThings like:\n\n  'if version.major > 4 or (version.major == 4 and version.minor >= 1):'\n\nare now just:\n\n  \"if version >= CompVersion('4.1'):\"\n\nwhich I think is much easier to read. You could also just do:\n\n  \"if version >= (4, 1, 0):\"\n\nbut I don't think this is as easy to read\n\nI need to make some changes to the chplenv scripts that will need the cce\nversion number. I've had this change in a branch for a while and figured this\nis a good time to pull it into master since it'll make the cce version number\ncomparison easier.","distinct":true,"url":"https://api.github.com/repos/ronawho/chapel/commits/793518dd3d1937cdeac80c0a4b049c24e5c78ad8"}]}