Uh oh!
There was an error while loading. Please reload this page.
Fix time retrieval for Apple mobile in LogAssert - #120358
Conversation
huoyaoyuan
commented
Oct 3, 2025
LGTM. Since the file is for debug only, it should prefer simplest approach without worrying about precision. It's also OK to be Windows/UNIX bipartite if that simplifies. |
kotlarmilos
commented
Oct 3, 2025
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
kotlarmilos
commented
Oct 3, 2025
/azp run runtime-extra-platforms |
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a build issue on Apple mobile platforms (iOS, tvOS, macCatalyst) by replacing the use of timespec_get with gettimeofday for time retrieval in LogAssert functionality. The timespec_get function is only available on iOS 13+ while the minimum SDK target is iOS 12.2.
Key changes:
- Added conditional compilation for Apple mobile platforms to use
gettimeofdayinstead oftimespec_get - Included necessary header
<sys/time.h>for Apple mobile platforms - Converted
timevaltotimespecformat to maintain compatibility with existing code
Uh oh!
There was an error while loading. Please reload this page.
|
Azure Pipelines successfully started running 1 pipeline(s). |
kotlarmilos
commented
Oct 3, 2025
/ba-g extra-platforms evaluate paths was canceled |
Description
The
timespec_getfunction introduced in #119543 is available only on iOS 13 and later, while the minimum SDK target is iOS 12.2. This change fixes CoreCLR Apple mobile build.Changes
Use
gettimeofdayto initializetimespecstruct.