toku-mac commented on code in PR #18883:
URL: https://github.com/apache/nuttx/pull/18883#discussion_r3252853227


##########
sched/clock/clock_gettime.c:
##########
@@ -45,6 +45,20 @@
 #  include "clock/clock_timekeeping.h"
 #endif
 
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+#if defined(CONFIG_ARCH_SIM) && defined(CONFIG_HOST_MACOS)
+/* Rust code built for the macOS host uses Darwin's libc clock IDs.  When it
+ * is linked into the NuttX simulator, those values are passed to NuttX's
+ * clock_gettime() implementation instead of Darwin's one.
+ */
+
+#  define DARWIN_CLOCK_MONOTONIC 6

Review Comment:
   I'm trying to fix the dependency issue using `weak_function`,
   but I'm still unable to resolve the panic occurring in Rust's tokio.
   I'll keep investigating further.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to