xuxin930 commented on code in PR #14440:
URL: https://github.com/apache/nuttx/pull/14440#discussion_r1809822502


##########
arch/sim/src/sim/CMakeLists.txt:
##########
@@ -288,4 +288,11 @@ endforeach()
 set(HOSTSRCS ${WINHOSTSRCS})
 
 target_sources(nuttx PRIVATE ${HOSTSRCS})
+
+get_target_property(HOST_COMPILE_OPTIONS nuttx COMPILE_OPTIONS)
+foreach(remove_item IN LISTS SIM_NO_HOST_OPTIONS)
+  list(REMOVE_ITEM HOST_COMPILE_OPTIONS ${remove_item})
+endforeach()
+set_target_properties(nuttx PROPERTIES COMPILE_OPTIONS
+                                       "${HOST_COMPILE_OPTIONS}")

Review Comment:
   ```suggestion
   nuttx_remove_compile_options(${SIM_NO_HOST_OPTIONS})
   ```



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