mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Tools: ardupilotwaf: disable SLP vectorization for clang++ in SITL
There appears to be a problem caused by clang++'s optimisations to do with SLP vectorizations. It *looks* like it doesn't push enough operands into one of the vectors, so you end up with a division by zero when attempting to execute an SSE instruction.
This commit is contained in:
parent
9897ff60de
commit
053d789843
@ -247,6 +247,12 @@ class sitl(Board):
|
||||
'winmm',
|
||||
]
|
||||
|
||||
|
||||
if 'clang++' in cfg.env.COMPILER_CXX:
|
||||
print("Disabling SLP for clang++")
|
||||
env.CXXFLAGS += [
|
||||
'-fno-slp-vectorize' # compiler bug when trying to use SLP
|
||||
]
|
||||
class chibios(Board):
|
||||
toolchain = 'arm-none-eabi'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user