diff options
Diffstat (limited to '0001-build-Fix-clang-linking.patch')
-rw-r--r-- | 0001-build-Fix-clang-linking.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/0001-build-Fix-clang-linking.patch b/0001-build-Fix-clang-linking.patch new file mode 100644 index 000000000000..ab2dfad4b2c5 --- /dev/null +++ b/0001-build-Fix-clang-linking.patch @@ -0,0 +1,25 @@ +From b5680fc14a577dd6dd57bd3d8568f0b05871b1c8 Mon Sep 17 00:00:00 2001 +From: Matt Coffin <mcoffin13@gmail.com> +Date: Sat, 9 Nov 2019 11:01:58 -0700 +Subject: [PATCH] build: Fix clang linking + +--- + icd/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/icd/CMakeLists.txt b/icd/CMakeLists.txt +index a60a9db..06b21f7 100644 +--- a/icd/CMakeLists.txt ++++ b/icd/CMakeLists.txt +@@ -381,7 +381,7 @@ if (UNIX) + + target_link_libraries(xgl PRIVATE c stdc++ ${CMAKE_DL_LIBS} pthread) + +- if(NOT ICD_USE_GCC) ++ if((NOT ICD_USE_GCC) AND (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")) + message(WARNING "Intel ICC untested in CMake.") + target_link_libraries(xgl PRIVATE -fabi-version=0 -static-intel) + endif() +-- +2.23.0 + |