From 9853da9dbda2c2f1c5f150dda51ebf0a50956563 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Tue, 14 Jan 2025 14:16:47 +0100 Subject: [PATCH] mips-mlir-xgot =================================================================== Gbp-Pq: Name mips-mlir-xgot.diff --- mlir/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.30.2