ethz-asl / ethzasl_msf

MSF - Modular framework for multi sensor fusion based on an Extended Kalman Filter (EKF)
Other
1.01k stars 437 forks source link

Only set -march=native if not cross compiling #184

Closed lsolanka-flya closed 2 years ago

lsolanka-flya commented 3 years ago

-march=native cannot be set when cross compiling, as the system architecture is not native as such - the compilation fails with an error, e.g.:

/build/src/ethzasl_msf/msf_updates/src/msf_distort/PoseDistorter.cc:1:0: error: unknown value 'native' for -march

The architecture type has to be specified explicitly in a toolchain instead. In other cases, using -march-native should be safe to use.

ethzasl-jenkins commented 3 years ago

Can one of the admins verify this patch?