aditya0yadav commented on PR #18331:
URL: https://github.com/apache/nuttx/pull/18331#issuecomment-3868567761

   @acassis, @simbit18, @raiden00pl, @linguini1, @FelipeMdeO
   
   If I am not mistaken, this issue occurs because macOS uses Clang as the 
default compiler and linker. On Apple Silicon/macOS, it is not advisable to 
force a switch to GCC, as most development tools and system libraries are 
optimized specifically for the Clang/LLVM toolchain.
   
   The current build failure stems from the system attempting to link against 
libgcov (a GCC-specific library) instead of using the native Clang source-based 
coverage runtime (-fprofile-instr-generate). We should update the build logic 
to detect the Apple toolchain and apply the appropriate Clang-specific coverage 
flags.


-- 
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