[Mesa-dev] [PATCH v3 18/25] configure.ac: Use new helper in radeon_llvm_check

Tobias Droste tdroste at gmx.de
Tue Oct 11 23:02:45 UTC 2016


Use new helper functions to add LLVM components and the r600/amdgpu target.

Signed-off-by: Tobias Droste <tdroste at gmx.de>
---
 configure.ac | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0b5c17a..9385583 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1006,12 +1006,15 @@ radeon_llvm_check() {
     else
         amdgpu_llvm_target_name='amdgpu'
     fi
+
     llvm_check_version_for $2 $3 $4 $1
-    if test true && $LLVM_CONFIG --targets-built | grep -iqvw $amdgpu_llvm_target_name ; then
-        AC_MSG_ERROR([LLVM $amdgpu_llvm_target_name not enabled in your LLVM build.])
-    fi
-    LLVM_COMPONENTS="${LLVM_COMPONENTS} $amdgpu_llvm_target_name bitreader ipo"
+
+    llvm_add_target $amdgpu_llvm_target_name $1
+    llvm_add_component "bitreader" $1
+    llvm_add_component "ipo" $1
+
     NEED_RADEON_LLVM=yes
+
     if test "x$have_libelf" != xyes; then
        AC_MSG_ERROR([$1 requires libelf when using llvm])
     fi
-- 
2.10.0



More information about the mesa-dev mailing list