winsys/amdgpu: Pull in LLVM CFLAGS
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 19 Dec 2018 14:58:23 +0000 (15:58 +0100)
committerMichel Dänzer <michel@daenzer.net>
Wed, 19 Dec 2018 16:54:18 +0000 (17:54 +0100)
Fixes build failure if the LLVM headers aren't in a standard include
directory.

Fixes: ec22dd34c88f "radeonsi: move SI_FORCE_FAMILY functionality to
                     winsys"
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/winsys/amdgpu/drm/Makefile.am
src/gallium/winsys/amdgpu/drm/meson.build

index e35fa2cd0a2a0afb8a22b5ace0e3137d6d76ba1c..1c2ec010fc6488c24bf6b14d7f76a097d91dc58c 100644 (file)
@@ -4,6 +4,7 @@ include $(top_srcdir)/src/gallium/Automake.inc
 AM_CFLAGS = \
        $(GALLIUM_WINSYS_CFLAGS) \
        $(AMDGPU_CFLAGS) \
+       $(LLVM_CFLAGS) \
        -I$(top_srcdir)/src/amd/
 
 AM_CXXFLAGS = $(AM_CFLAGS)
index 8b6f69b2bdd0c42be592cbfaf6b6222c85f27b36..d3282ef412dcb64eaf237d25cbef8efa989cf648 100644 (file)
@@ -31,5 +31,5 @@ libamdgpuwinsys = static_library(
   c_args : [c_vis_args],
   cpp_args : [cpp_vis_args],
   link_with : libamdgpu_addrlib,
-  dependencies : dep_libdrm_amdgpu,
+  dependencies : [dep_llvm, dep_libdrm_amdgpu],
 )