Skip to content
Snippets Groups Projects
Unverified Commit d73ce6e9 authored by Matthias Plappert's avatar Matthias Plappert Committed by GitHub
Browse files

Add GCC9 and prefer newer over older versions (#485)

* Add GCC9 and prefer newer over older versions

* Bump version
parent 98afc3ec
Branches
No related tags found
No related merge requests found
......@@ -308,13 +308,17 @@ class MacExtensionBuilder(MujocoExtensionBuilder):
def _build_impl(self):
if not os.environ.get('CC'):
# Known-working versions of GCC on mac
c_compilers = ['/usr/local/bin/gcc-6',
'/usr/local/bin/gcc-7',
# Known-working versions of GCC on mac (prefer latest one)
c_compilers = [
'/usr/local/bin/gcc-9',
'/usr/local/bin/gcc-8',
'/opt/local/bin/gcc-mp-6',
'/usr/local/bin/gcc-7',
'/usr/local/bin/gcc-6',
'/opt/local/bin/gcc-mp-9',
'/opt/local/bin/gcc-mp-8',
'/opt/local/bin/gcc-mp-7',
'/opt/local/bin/gcc-mp-8']
'/opt/local/bin/gcc-mp-6',
]
available_c_compiler = None
for c_compiler in c_compilers:
if distutils.spawn.find_executable(c_compiler) is not None:
......
__all__ = ['__version__', 'get_version']
version_info = (2, 0, 2, 8)
version_info = (2, 0, 2, 9)
# format:
# ('mujoco_major', 'mujoco_minor', 'mujoco_py_major', 'mujoco_py_minor')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment