You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "rushabhvg (via GitHub)" <gi...@apache.org> on 2024/03/18 13:19:08 UTC

[PR] apps/examples/hello_rust/Makefile: Add -O flag [nuttx-apps]

rushabhvg opened a new pull request, #2333:
URL: https://github.com/apache/nuttx-apps/pull/2333

   ## Summary
   Currently, the "hello_rust_main.rs" doesn't build succesfullly. This pull request is to add "-O" flag to the rustc flags, which is needed to ensure the code is optimize at level 2. The changes are in file at: apps/examples/hello_rust/Makefile
   
   ## Impact
   With this PR rust files can be build successfully.
   There is no impact on any other compile flags.
   
   ## Testing
   We tested with QEMU:
   
   ```
   qemu-system-riscv32 \
     -semihosting \
     -M virt,aclint=on \
     -cpu rv32 \
     -smp 8 \
     -bios none \
     -kernel nuttx \
     -nographic
   ```
   
   The [Rust build log](https://gist.github.com/rushabhvg/eacb3ff6658750dd37db46ac6eb4ee3d) for NuttX shows that rust apps are build successfully.


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] examples/hello_rust: Add -O flag [nuttx-apps]

Posted by "rushabhvg (via GitHub)" <gi...@apache.org>.
rushabhvg commented on PR #2333:
URL: https://github.com/apache/nuttx-apps/pull/2333#issuecomment-2011991904

   Okay, point noted down, from now onwards I will be concise and write in bullet-points.


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] examples/hello_rust: Add -O flag [nuttx-apps]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #2333:
URL: https://github.com/apache/nuttx-apps/pull/2333


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org