Ask Your Question
0

Start Python with Optimizer Flag

asked 2017-07-14 04:54:21 -0500

ricorod gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-07-16 04:51:48 -0500

ricorod gravatar image

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" />
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-07-14 04:54:21 -0500

Seen: 109 times

Last updated: Jul 16 '17