mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-21 03:05:15 +00:00
[CMake] Delete llvm_add_go_executable and a reference to TARGET llvm-go
llvm-go was deleted by 102814b4d36ad004a2e37cd2a1e84bd2c3593d29.
This commit is contained in:
parent
c7fb4c55c4
commit
2a138c13f8
@ -1327,36 +1327,6 @@ function(add_benchmark benchmark_name)
|
||||
target_link_libraries(${benchmark_name} PRIVATE benchmark)
|
||||
endfunction()
|
||||
|
||||
function(llvm_add_go_executable binary pkgpath)
|
||||
cmake_parse_arguments(ARG "ALL" "" "DEPENDS;GOFLAGS" ${ARGN})
|
||||
|
||||
if(LLVM_BINDINGS MATCHES "go")
|
||||
# FIXME: This should depend only on the libraries Go needs.
|
||||
get_property(llvmlibs GLOBAL PROPERTY LLVM_LIBS)
|
||||
set(binpath ${CMAKE_BINARY_DIR}/bin/${binary}${CMAKE_EXECUTABLE_SUFFIX})
|
||||
set(cc "${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1}")
|
||||
set(cxx "${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1}")
|
||||
set(cppflags "")
|
||||
get_property(include_dirs DIRECTORY PROPERTY INCLUDE_DIRECTORIES)
|
||||
foreach(d ${include_dirs})
|
||||
set(cppflags "${cppflags} -I${d}")
|
||||
endforeach(d)
|
||||
set(ldflags "${CMAKE_EXE_LINKER_FLAGS}")
|
||||
add_custom_command(OUTPUT ${binpath}
|
||||
COMMAND ${CMAKE_BINARY_DIR}/bin/llvm-go "go=${GO_EXECUTABLE}" "cc=${cc}" "cxx=${cxx}" "cppflags=${cppflags}" "ldflags=${ldflags}" "packages=${LLVM_GO_PACKAGES}"
|
||||
${ARG_GOFLAGS} build -o ${binpath} ${pkgpath}
|
||||
DEPENDS llvm-config ${CMAKE_BINARY_DIR}/bin/llvm-go${CMAKE_EXECUTABLE_SUFFIX}
|
||||
${llvmlibs} ${ARG_DEPENDS}
|
||||
COMMENT "Building Go executable ${binary}"
|
||||
VERBATIM)
|
||||
if (ARG_ALL)
|
||||
add_custom_target(${binary} ALL DEPENDS ${binpath})
|
||||
else()
|
||||
add_custom_target(${binary} DEPENDS ${binpath})
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
# This function canonicalize the CMake variables passed by names
|
||||
# from CMake boolean to 0/1 suitable for passing into Python or C++,
|
||||
# in place.
|
||||
|
@ -122,10 +122,6 @@ if(TARGET LLVMgold)
|
||||
set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LLVMgold)
|
||||
endif()
|
||||
|
||||
if(TARGET llvm-go)
|
||||
set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-go)
|
||||
endif()
|
||||
|
||||
if(TARGET LTO)
|
||||
set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LTO)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user