From: LLVM Packaging Team Date: Fri, 14 Mar 2025 09:48:31 +0000 (+0100) Subject: mips-mlir-xgot X-Git-Tag: archive/raspbian/1%19.1.7-3+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=15c117e96eaa954c8fd6df37bccd2701ba3d774b;p=llvm-toolchain-19.git mips-mlir-xgot =================================================================== Gbp-Pq: Name mips-mlir-xgot.diff --- diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt index c6d44908a1..885efd819b 100644 --- a/mlir/CMakeLists.txt +++ b/mlir/CMakeLists.txt @@ -93,6 +93,10 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LE append_if(CXX_SUPPORTS_WNO_UNUSED_BUT_SET_PARAMETER "-Wno-unused-but-set-parameter" CMAKE_CXX_FLAGS) endif() +check_symbol_exists(__mips "" __MIPS) +append_if(__MIPS "-mxgot" CMAKE_C_FLAGS) +append_if(__MIPS "-mxgot" CMAKE_CXX_FLAGS) + # Installing the headers and docs needs to depend on generating any public # tablegen'd targets. # mlir-generic-headers are dialect-independent.