Skip to content

CMake: re-add /RTC1 removal fix #1751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

enetheru
Copy link
Collaborator

  • Add cmake/msvcHack.cmake to consolidate funky business
  • re-Add the /RTC1 Fix that was present in older CMake code.
  • Move the runtime library fix into the same location

The RTC fix was present in 4.3 and below, it somehow got lost, in a rebase perhaps.

CMake adds /RTC1 to MSVC Debug builds by default, and running the test integration fails
It doesnt show up in CI because we build in Release mode which doesnt add this flag.

Debug is necessary to compile with debug symbols.

Add msvcHack.cmake to consolidate funky business
Move the runtime library fix into the same location

The RTC fix was present in 4.3 and below, it somehow got lost in a rebase perhaps.
@enetheru
Copy link
Collaborator Author

Might this just be hiding a real bug tho... I'm seeing a few weird stacktraces around.

@enetheru
Copy link
Collaborator Author

As disovered in discussions with @dsnopek this would simply hide a real bug. #1741

@dsnopek
Copy link
Collaborator

dsnopek commented Mar 28, 2025

Yeah, I think we probably want these extra runtime checks in debug builds. Whether or not we want them in release builds is open to discussion, but it sounds like cmake is only adding them to debug builds by default anyway?

@enetheru
Copy link
Collaborator Author

Yeah, I think we probably want these extra runtime checks in debug builds. Whether or not we want them in release builds is open to discussion, but it sounds like cmake is only adding them to debug builds by default anyway?

correct. I will close this PR now we have a proper solution to the issue

@enetheru enetheru closed this Mar 28, 2025
@enetheru enetheru deleted the rtc1 branch April 16, 2025 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants