Skip to content

allocators: Only build DRM allocator on Linux

Monorepo build on macOS is currently broken due to attempting to build libdrm - example error:

../subprojects/libdrm-2.4.111/tests/nouveau/threaded.c:42:5: error: conflicting types for 'ioctl'
int ioctl(int fd, int request, ...)
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/ioctl.h:97:9: note: previous declaration is here
int     ioctl(int, unsigned long, ...);
        ^
[...]

This change limits the newly moved DRM allocator to only be built on Linux.

Merge request reports