0
$\begingroup$

Rosanswers logo

Hi together,

is there a possibility to start the nodes that are written in Python with the optimization flag -O?

I want to provide two different builds: debug and release. The optimizer flag should only be set in the release build mode.

Thank you, Best Regards Markus


Originally posted by ricorod on ROS Answers with karma: 11 on 2017-07-14

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

I've found one solution:

Adding the following attribute to the node in the launch file:

launch-prefix="python $(arg optimization_flags)"

with

<arg name="optimization_flags" value="-OO" />

Originally posted by ricorod with karma: 11 on 2017-07-16

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.