Skip to content

Apple Clang 16 fix#430

Merged
FinnWilkinson merged 1 commit intodevfrom
appleClang-16-fix
Sep 20, 2024
Merged

Apple Clang 16 fix#430
FinnWilkinson merged 1 commit intodevfrom
appleClang-16-fix

Conversation

@FinnWilkinson
Copy link
Copy Markdown
Contributor

With Apple Clang 16, the static local variable SimInfoClass inside the getInstance() function had two instantiations - one in main.cc and one in libsimeng.dylib. This is due to an optimisation made in the Link Time Optimisation in CMake.

This PR moves the function definitions into a .cc file to mitigate this error.

@FinnWilkinson FinnWilkinson added the bug Something isn't working label Sep 18, 2024
@FinnWilkinson FinnWilkinson self-assigned this Sep 18, 2024
Copy link
Copy Markdown
Contributor

@JosephMoore25 JosephMoore25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@FinnWilkinson FinnWilkinson merged commit 7018211 into dev Sep 20, 2024
@FinnWilkinson FinnWilkinson deleted the appleClang-16-fix branch September 20, 2024 08:38
ABenC377 pushed a commit that referenced this pull request Oct 16, 2024
@FinnWilkinson FinnWilkinson mentioned this pull request Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants