Skip to content
Snippets Groups Projects
Verified Commit b69bfb2a authored by Ralph Giles's avatar Ralph Giles
Browse files

Fix arm build with rtcd enabled.


The autotools build doesn't set OPUS_HAVE_RTCD for arm targets,
assuming all the supported intrinsics will work on the runtime
cpu.

The cmake build however defines this by default when the neon
extension is available on the target. On Linux, the runtime
cpu detection reads /proc/cpuinfo, so removing stdio.h from
celt/os_support.h meant that the cmake build for arm targets
failed.

We don't currently have ci runs for that configuration, so
this only became apparent through manual testing.

Signed-off-by: default avatarMarcus Asteborg <maastebo@microsoft.com>
Signed-off-by: default avatarJean-Marc Valin <jmvalin@jmvalin.ca>
parent b816d1da
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,8 @@ static OPUS_INLINE opus_uint32 opus_cpu_capabilities(void){
#elif defined(__linux__)
/* Linux based */
#include <stdio.h>
opus_uint32 opus_cpu_capabilities(void)
{
opus_uint32 flags = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment