Skip to content

Commit 9795860

Browse files
committed
cmake/*: Add svn:eol-style=native and fix CRLF.
llvm-svn: 124793
1 parent 2bd04c3 commit 9795860

File tree

2 files changed

+39
-40
lines changed

2 files changed

+39
-40
lines changed
Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
# There is no clear way of keeping track of compiler command-line
2-
# options chosen via `add_definitions', so we need our own method for
3-
# using it on tools/llvm-config/CMakeLists.txt.
4-
5-
# Beware that there is no implementation of remove_llvm_definitions.
6-
7-
macro(add_llvm_definitions)
8-
# We don't want no semicolons on LLVM_DEFINITIONS:
9-
foreach(arg ${ARGN})
10-
set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")
11-
endforeach(arg)
12-
add_definitions( ${ARGN} )
13-
endmacro(add_llvm_definitions)
14-
1+
# There is no clear way of keeping track of compiler command-line
2+
# options chosen via `add_definitions', so we need our own method for
3+
# using it on tools/llvm-config/CMakeLists.txt.
4+
5+
# Beware that there is no implementation of remove_llvm_definitions.
6+
7+
macro(add_llvm_definitions)
8+
# We don't want no semicolons on LLVM_DEFINITIONS:
9+
foreach(arg ${ARGN})
10+
set(LLVM_DEFINITIONS "${LLVM_DEFINITIONS} ${arg}")
11+
endforeach(arg)
12+
add_definitions( ${ARGN} )
13+
endmacro(add_llvm_definitions)
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
2-
if( ${LLVM_TABLEGEN} STREQUAL "tblgen" )
3-
set(CX_NATIVE_TG_DIR "${CMAKE_BINARY_DIR}/native")
4-
set(LLVM_TABLEGEN_EXE "${CX_NATIVE_TG_DIR}/bin/tblgen")
5-
6-
add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}
7-
COMMAND ${CMAKE_COMMAND} -E make_directory ${CX_NATIVE_TG_DIR}
8-
COMMENT "Creating ${CX_NATIVE_TG_DIR}...")
9-
10-
add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}/CMakeCache.txt
11-
COMMAND ${CMAKE_COMMAND} -UMAKE_TOOLCHAIN_FILE -DCMAKE_BUILD_TYPE=Release ${CMAKE_SOURCE_DIR}
12-
WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}
13-
DEPENDS ${CX_NATIVE_TG_DIR}
14-
COMMENT "Configuring native TableGen...")
15-
16-
add_custom_command(OUTPUT ${LLVM_TABLEGEN_EXE}
17-
COMMAND ${CMAKE_BUILD_TOOL}
18-
DEPENDS ${CX_NATIVE_TG_DIR}/CMakeCache.txt
19-
WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}/utils/TableGen
20-
COMMENT "Building native TableGen...")
21-
add_custom_target(NativeTableGen DEPENDS ${LLVM_TABLEGEN_EXE})
22-
23-
add_dependencies(tblgen NativeTableGen)
24-
25-
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CX_NATIVE_TG_DIR})
26-
endif()
1+
2+
if( ${LLVM_TABLEGEN} STREQUAL "tblgen" )
3+
set(CX_NATIVE_TG_DIR "${CMAKE_BINARY_DIR}/native")
4+
set(LLVM_TABLEGEN_EXE "${CX_NATIVE_TG_DIR}/bin/tblgen")
5+
6+
add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}
7+
COMMAND ${CMAKE_COMMAND} -E make_directory ${CX_NATIVE_TG_DIR}
8+
COMMENT "Creating ${CX_NATIVE_TG_DIR}...")
9+
10+
add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}/CMakeCache.txt
11+
COMMAND ${CMAKE_COMMAND} -UMAKE_TOOLCHAIN_FILE -DCMAKE_BUILD_TYPE=Release ${CMAKE_SOURCE_DIR}
12+
WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}
13+
DEPENDS ${CX_NATIVE_TG_DIR}
14+
COMMENT "Configuring native TableGen...")
15+
16+
add_custom_command(OUTPUT ${LLVM_TABLEGEN_EXE}
17+
COMMAND ${CMAKE_BUILD_TOOL}
18+
DEPENDS ${CX_NATIVE_TG_DIR}/CMakeCache.txt
19+
WORKING_DIRECTORY ${CX_NATIVE_TG_DIR}/utils/TableGen
20+
COMMENT "Building native TableGen...")
21+
add_custom_target(NativeTableGen DEPENDS ${LLVM_TABLEGEN_EXE})
22+
23+
add_dependencies(tblgen NativeTableGen)
24+
25+
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CX_NATIVE_TG_DIR})
26+
endif()

0 commit comments

Comments
 (0)