From: LLVM Packaging Team Date: Tue, 14 Jan 2025 13:16:47 +0000 (+0100) Subject: mips-mlir-xgot X-Git-Tag: archive/raspbian/1%19.1.7-1+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9853da9dbda2c2f1c5f150dda51ebf0a50956563;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.