llvm.org GIT mirror llvm / a7b1d45
[llvm-config] Teach llvm-config about global-isel. llvm-config can know tell whether or not a build has been configured to support global-isel. Use '--has-global-isel' for that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262877 91177308-0d34-0410-b5e6-96231b3b80d8 Quentin Colombet 3 years ago
3 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3232 #define LLVM_ENABLE_SHARED "@LLVM_ENABLE_SHARED@"
3333 #define LLVM_DYLIB_COMPONENTS "@LLVM_DYLIB_COMPONENTS@"
3434 #define LLVM_DYLIB_VERSION "@LLVM_DYLIB_VERSION@"
35 #define LLVM_HAS_GLOBAL_ISEL "@LLVM_HAS_GLOBAL_ISEL@"
3030 set(LLVM_BUILD_SYSTEM cmake)
3131 set(LLVM_HAS_RTTI ${LLVM_CONFIG_HAS_RTTI})
3232 set(LLVM_DYLIB_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}${LLVM_VERSION_SUFFIX}")
33 set(LLVM_HAS_GLOBAL_ISEL "${LLVM_BUILD_GLOBAL_ISEL}")
3334
3435 # Use the C++ link flags, since they should be a superset of C link flags.
3536 set(LLVM_LDFLAGS "${CMAKE_CXX_LINK_FLAGS}")
210210 --assertion-mode Print assertion mode of LLVM tree (ON or OFF).\n\
211211 --build-system Print the build system used to build LLVM (autoconf or cmake).\n\
212212 --has-rtti Print whether or not LLVM was built with rtti (YES or NO).\n\
213 --has-global-isel Print whether or not LLVM was built with global-isel support (YES or NO).\n\
213214 --shared-mode Print how the provided components can be collectively linked (`shared` or `static`).\n\
214215 --link-shared Link the components as shared libraries.\n\
215216 --link-static Link the component libraries statically.\n\
558559 OS << LLVM_BUILD_SYSTEM << '\n';
559560 } else if (Arg == "--has-rtti") {
560561 OS << LLVM_HAS_RTTI << '\n';
562 } else if (Arg == "--has-global-isel") {
563 OS << LLVM_HAS_GLOBAL_ISEL << '\n';
561564 } else if (Arg == "--shared-mode") {
562565 PrintSharedMode = true;
563566 } else if (Arg == "--obj-root") {