Skip to content

Commit

Permalink
Merge pull request #1203 from OceanParcels/compilererror_hint_macOS
Browse files Browse the repository at this point in the history
Adding hint for export CC=gcc in compilation error message
  • Loading branch information
erikvansebille committed Jul 26, 2022
2 parents d94193e + 086fb8b commit 03208e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion parcels/compilation/codecompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ def _create_compile_process_(self, cmd, src, log):
Source/Destination file: %s
Log file: %s
Log output: %s""" % (" ".join(cmd), src, logfile.name, logfile2.read())
Log output: %s
If you are on macOS, it might help to type 'export CC=gcc'
""" % (" ".join(cmd), src, logfile.name, logfile2.read())
raise RuntimeError(err)
return True

Expand Down

0 comments on commit 03208e5

Please sign in to comment.