llvm.org GIT mirror llvm / 94f5a67
llvm-config: With --build-mode, show ${CMAKE_CFG_INTDIR} on multiconfig builder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196283 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 5 years ago
2 changed file(s) with 9 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2121 string(REPLACE ";" " " LLVM_TARGETS_BUILT "${LLVM_TARGETS_TO_BUILD}")
2222 configure_file(${BUILDVARIABLES_SRCPATH} ${BUILDVARIABLES_OBJPATH} @ONLY)
2323
24 # Set build-time environment(s).
25 add_definitions(-DCMAKE_CFG_INTDIR="${CMAKE_CFG_INTDIR}")
26
2427 # Add the llvm-config tool.
2528 add_llvm_tool(llvm-config
2629 llvm-config.cpp
299299 } else if (Arg == "--host-target") {
300300 OS << LLVM_DEFAULT_TARGET_TRIPLE << '\n';
301301 } else if (Arg == "--build-mode") {
302 OS << LLVM_BUILDMODE << '\n';
302 char const *build_mode = LLVM_BUILDMODE;
303 #if defined(CMAKE_CFG_INTDIR)
304 if (!(CMAKE_CFG_INTDIR[0] == '.' && CMAKE_CFG_INTDIR[1] == '\0'))
305 build_mode = CMAKE_CFG_INTDIR;
306 #endif
307 OS << build_mode << '\n';
303308 } else if (Arg == "--obj-root") {
304309 OS << LLVM_OBJ_ROOT << '\n';
305310 } else if (Arg == "--src-root") {