Ask Your Question
0

Disable AVX instructions for entire catkin workspace

asked 2017-01-24 08:03:41 -0500

MrX gravatar image

I have a multitude of packages in my catkin workspace that all need to be compiled without using AVX instructions. Is there a way to globally disable AVX instructions when using catkin build? It is not an option for me to disable AVX instructions in every single CMakeLists.txt.

My first attempt was to add -mavx to the Make Args of catkin config but that was unsuccessful probably because it is not a Make argument but a compiler option.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-01-25 04:09:16 -0500

MrX gravatar image

This works:

catkin build --force-cmake --cmake-args -DCMAKE_CXX_FLAGS="-mno-avx"
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-01-24 08:03:41 -0500

Seen: 106 times

Last updated: Jan 25 '17