1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Index: llvm-toolchain-snapshot_21~++20250630094904+57f7e14b5779/mlir/CMakeLists.txt
===================================================================
--- llvm-toolchain-snapshot_21~++20250630094904+57f7e14b5779.orig/mlir/CMakeLists.txt
+++ llvm-toolchain-snapshot_21~++20250630094904+57f7e14b5779/mlir/CMakeLists.txt
@@ -110,6 +110,10 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
endif()
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.
|