mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
[CMake] Untabify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200644 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3328a1dadc
commit
de2d83b9c3
@ -64,14 +64,14 @@ variables (LLVM_USE_CRT_DEBUG, etc) instead.")
|
|||||||
string(TOUPPER "${build_type}" build)
|
string(TOUPPER "${build_type}" build)
|
||||||
if (NOT LLVM_USE_CRT_${build})
|
if (NOT LLVM_USE_CRT_${build})
|
||||||
get_current_crt(LLVM_USE_CRT_${build}
|
get_current_crt(LLVM_USE_CRT_${build}
|
||||||
MSVC_CRT_REGEX
|
MSVC_CRT_REGEX
|
||||||
CMAKE_CXX_FLAGS_${build})
|
CMAKE_CXX_FLAGS_${build})
|
||||||
set(LLVM_USE_CRT_${build}
|
set(LLVM_USE_CRT_${build}
|
||||||
"${LLVM_USE_CRT_${build}}"
|
"${LLVM_USE_CRT_${build}}"
|
||||||
CACHE STRING "Specify VC++ CRT to use for ${build_type} configurations."
|
CACHE STRING "Specify VC++ CRT to use for ${build_type} configurations."
|
||||||
FORCE)
|
FORCE)
|
||||||
set_property(CACHE LLVM_USE_CRT_${build}
|
set_property(CACHE LLVM_USE_CRT_${build}
|
||||||
PROPERTY STRINGS ;${${MSVC_CRT}})
|
PROPERTY STRINGS ;${${MSVC_CRT}})
|
||||||
endif(NOT LLVM_USE_CRT_${build})
|
endif(NOT LLVM_USE_CRT_${build})
|
||||||
endforeach(build_type)
|
endforeach(build_type)
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ variables (LLVM_USE_CRT_DEBUG, etc) instead.")
|
|||||||
list(FIND ${MSVC_CRT} ${LLVM_USE_CRT_${build}} idx)
|
list(FIND ${MSVC_CRT} ${LLVM_USE_CRT_${build}} idx)
|
||||||
if (idx LESS 0)
|
if (idx LESS 0)
|
||||||
message(FATAL_ERROR
|
message(FATAL_ERROR
|
||||||
"Invalid value for LLVM_USE_CRT_${build}: ${LLVM_USE_CRT_${build}}. Valid options are one of: ${${MSVC_CRT}}")
|
"Invalid value for LLVM_USE_CRT_${build}: ${LLVM_USE_CRT_${build}}. Valid options are one of: ${${MSVC_CRT}}")
|
||||||
endif (idx LESS 0)
|
endif (idx LESS 0)
|
||||||
message(STATUS "Using ${build_type} VC++ CRT: ${LLVM_USE_CRT_${build}}")
|
message(STATUS "Using ${build_type} VC++ CRT: ${LLVM_USE_CRT_${build}}")
|
||||||
endif()
|
endif()
|
||||||
|
@ -41,12 +41,12 @@ function(is_llvm_target_library library return_var)
|
|||||||
string(TOUPPER "${LLVM_ALL_TARGETS}" targets)
|
string(TOUPPER "${LLVM_ALL_TARGETS}" targets)
|
||||||
foreach(t ${targets})
|
foreach(t ${targets})
|
||||||
if( capitalized_lib STREQUAL t OR
|
if( capitalized_lib STREQUAL t OR
|
||||||
capitalized_lib STREQUAL "LLVM${t}" OR
|
capitalized_lib STREQUAL "LLVM${t}" OR
|
||||||
capitalized_lib STREQUAL "LLVM${t}CODEGEN" OR
|
capitalized_lib STREQUAL "LLVM${t}CODEGEN" OR
|
||||||
capitalized_lib STREQUAL "LLVM${t}ASMPARSER" OR
|
capitalized_lib STREQUAL "LLVM${t}ASMPARSER" OR
|
||||||
capitalized_lib STREQUAL "LLVM${t}ASMPRINTER" OR
|
capitalized_lib STREQUAL "LLVM${t}ASMPRINTER" OR
|
||||||
capitalized_lib STREQUAL "LLVM${t}DISASSEMBLER" OR
|
capitalized_lib STREQUAL "LLVM${t}DISASSEMBLER" OR
|
||||||
capitalized_lib STREQUAL "LLVM${t}INFO" )
|
capitalized_lib STREQUAL "LLVM${t}INFO" )
|
||||||
set(${return_var} ON PARENT_SCOPE)
|
set(${return_var} ON PARENT_SCOPE)
|
||||||
break()
|
break()
|
||||||
endif()
|
endif()
|
||||||
@ -106,14 +106,14 @@ function(explicit_map_components_to_libraries out_libs)
|
|||||||
if( NOT idx LESS 0 )
|
if( NOT idx LESS 0 )
|
||||||
list(FIND llvm_libs "LLVM${c}CodeGen" idx)
|
list(FIND llvm_libs "LLVM${c}CodeGen" idx)
|
||||||
if( NOT idx LESS 0 )
|
if( NOT idx LESS 0 )
|
||||||
list(APPEND expanded_components "LLVM${c}CodeGen")
|
list(APPEND expanded_components "LLVM${c}CodeGen")
|
||||||
else()
|
else()
|
||||||
list(FIND llvm_libs "LLVM${c}" idx)
|
list(FIND llvm_libs "LLVM${c}" idx)
|
||||||
if( NOT idx LESS 0 )
|
if( NOT idx LESS 0 )
|
||||||
list(APPEND expanded_components "LLVM${c}")
|
list(APPEND expanded_components "LLVM${c}")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Target ${c} is not in the set of libraries.")
|
message(FATAL_ERROR "Target ${c} is not in the set of libraries.")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
list(FIND llvm_libs "LLVM${c}AsmPrinter" asmidx)
|
list(FIND llvm_libs "LLVM${c}AsmPrinter" asmidx)
|
||||||
if( NOT asmidx LESS 0 )
|
if( NOT asmidx LESS 0 )
|
||||||
|
Loading…
Reference in New Issue
Block a user