diff --git a/mlir/cmake/modules/AddMLIR.cmake b/mlir/cmake/modules/AddMLIR.cmake --- a/mlir/cmake/modules/AddMLIR.cmake +++ b/mlir/cmake/modules/AddMLIR.cmake @@ -44,10 +44,10 @@ else() set(LIBTYPE STATIC) endif() - if(NOT XCODE) - # The Xcode generator doesn't handle object libraries correctly. - list(APPEND LIBTYPE OBJECT) - endif() + # if(NOT XCODE) + # # The Xcode generator doesn't handle object libraries correctly. + # list(APPEND LIBTYPE OBJECT) + # endif() set_property(GLOBAL APPEND PROPERTY MLIR_STATIC_LIBS ${name}) endif() add_llvm_library(${name} ${LIBTYPE} ${ARG_UNPARSED_ARGUMENTS} ${srcs}) diff --git a/mlir/tools/mlir-shlib/CMakeLists.txt b/mlir/tools/mlir-shlib/CMakeLists.txt --- a/mlir/tools/mlir-shlib/CMakeLists.txt +++ b/mlir/tools/mlir-shlib/CMakeLists.txt @@ -17,7 +17,7 @@ # linking the static libraries instead. list(APPEND _DEPS "-force_load" ${lib}) else() - list(APPEND _OBJECTS $) + list(APPEND _OBJECTS $) endif() list(APPEND _DEPS $) endforeach ()