mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
cmake/*: Add svn:eol-style=native and fix CRLF.
llvm-svn: 124793
This commit is contained in:
parent
fc33df78c1
commit
ce089665e7
@ -1,14 +1,13 @@
|
|||||||
# There is no clear way of keeping track of compiler command-line
|
# There is no clear way of keeping track of compiler command-line
|
||||||
# options chosen via `add_definitions', so we need our own method for
|
# options chosen via `add_definitions', so we need our own method for
|
||||||
# using it on tools/llvm-config/CMakeLists.txt.
|
# using it on tools/llvm-config/CMakeLists.txt.
|
||||||
|
|
||||||
# Beware that there is no implementation of remove_llvm_definitions.
|
# Beware that there is no implementation of remove_llvm_definitions.
|
||||||
|
|
||||||
macro(add_llvm_definitions)
|
macro(add_llvm_definitions)
|
||||||
# We don't want no semicolons on LLVM_DEFINITIONS:
|
# We don't want no semicolons on LLVM_DEFINITIONS:
|
||||||
foreach(arg ${ARGN})
|
foreach(arg ${ARGN})
|
||||||
set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")
|
set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")
|
||||||
endforeach(arg)
|
endforeach(arg)
|
||||||
add_definitions( ${ARGN} )
|
add_definitions( ${ARGN} )
|
||||||
endmacro(add_llvm_definitions)
|
endmacro(add_llvm_definitions)
|
||||||
|
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
|
|
||||||
if( ${LLVM_TABLEGEN} STREQUAL "tblgen" )
|
if( ${LLVM_TABLEGEN} STREQUAL "tblgen" )
|
||||||
set(CX_NATIVE_TG_DIR "${CMAKE_BINARY_DIR}/native")
|
set(CX_NATIVE_TG_DIR "${CMAKE_BINARY_DIR}/native")
|
||||||
set(LLVM_TABLEGEN_EXE "${CX_NATIVE_TG_DIR}/bin/tblgen")
|
set(LLVM_TABLEGEN_EXE "${CX_NATIVE_TG_DIR}/bin/tblgen")
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}
|
add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}
|
||||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${CX_NATIVE_TG_DIR}
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${CX_NATIVE_TG_DIR}
|
||||||
COMMENT "Creating ${CX_NATIVE_TG_DIR}...")
|
COMMENT "Creating ${CX_NATIVE_TG_DIR}...")
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}/CMakeCache.txt
|
add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}/CMakeCache.txt
|
||||||
COMMAND ${CMAKE_COMMAND} -UMAKE_TOOLCHAIN_FILE -DCMAKE_BUILD_TYPE=Release ${CMAKE_SOURCE_DIR}
|
COMMAND ${CMAKE_COMMAND} -UMAKE_TOOLCHAIN_FILE -DCMAKE_BUILD_TYPE=Release ${CMAKE_SOURCE_DIR}
|
||||||
WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}
|
WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}
|
||||||
DEPENDS ${CX_NATIVE_TG_DIR}
|
DEPENDS ${CX_NATIVE_TG_DIR}
|
||||||
COMMENT "Configuring native TableGen...")
|
COMMENT "Configuring native TableGen...")
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${LLVM_TABLEGEN_EXE}
|
add_custom_command(OUTPUT ${LLVM_TABLEGEN_EXE}
|
||||||
COMMAND ${CMAKE_BUILD_TOOL}
|
COMMAND ${CMAKE_BUILD_TOOL}
|
||||||
DEPENDS ${CX_NATIVE_TG_DIR}/CMakeCache.txt
|
DEPENDS ${CX_NATIVE_TG_DIR}/CMakeCache.txt
|
||||||
WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}/utils/TableGen
|
WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}/utils/TableGen
|
||||||
COMMENT "Building native TableGen...")
|
COMMENT "Building native TableGen...")
|
||||||
add_custom_target(NativeTableGen DEPENDS ${LLVM_TABLEGEN_EXE})
|
add_custom_target(NativeTableGen DEPENDS ${LLVM_TABLEGEN_EXE})
|
||||||
|
|
||||||
add_dependencies(tblgen NativeTableGen)
|
add_dependencies(tblgen NativeTableGen)
|
||||||
|
|
||||||
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CX_NATIVE_TG_DIR})
|
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CX_NATIVE_TG_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user