mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
CMake: Fixed cross-compiling.
`clean' makefile target removes add-hoc directory created for building the native tablegen. llvm-svn: 59005
This commit is contained in:
parent
b5857c2859
commit
0e9ae6e64a
@ -1,8 +1,8 @@
|
||||
|
||||
if( ${LLVM_TABLEGEN} STREQUAL "tblgen" )
|
||||
set(CX_NATIVE_TG_DIR "${CMAKE_BINARY_DIR}/native")
|
||||
set(LLVM_TABLEGEN "${CX_NATIVE_TG_DIR}/bin/tblgen")
|
||||
|
||||
message(STATUS "CX_NATIVE_TG_DIR : ${CX_NATIVE_TG_DIR}")
|
||||
add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${CX_NATIVE_TG_DIR}
|
||||
COMMENT "Creating ${CX_NATIVE_TG_DIR}...")
|
||||
@ -22,10 +22,5 @@ if( ${LLVM_TABLEGEN} STREQUAL "tblgen" )
|
||||
|
||||
add_dependencies(tblgen NativeTableGen)
|
||||
|
||||
# TODO: We should clean the native build when the `clean target
|
||||
# is invoked. This doesn't work.
|
||||
# add_custom_command(TARGET clean
|
||||
# COMMAND ${CMAKE_BUILD_TOOL} -C ${CX_NATIVE_TG_DIR}/utils/TableGen clean
|
||||
# POST_BUILD
|
||||
# COMMENT "Cleaning native TableGen...")
|
||||
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CX_NATIVE_TG_DIR})
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user