brintos

brintos / llvm-project-archived public Read only

0
0
Text · 997 B · a5ae1c3 Raw
33 lines · plain
1##===----------------------------------------------------------------------===##2#3# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4# See https://llvm.org/LICENSE.txt for license information.5# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6#7##===----------------------------------------------------------------------===##8include(TableGen)9 10set(LLVM_LINK_COMPONENTS Support)11 12add_tablegen(offload-tblgen OFFLOAD13  EXPORT OFFLOAD14  APIGen.cpp15  DocGen.cpp16  EntryPointGen.cpp17  MiscGen.cpp18  GenCommon.hpp19  Generators.hpp20  offload-tblgen.cpp21  PrintGen.cpp22  RecordTypes.hpp23  )24 25# Make sure that C++ headers are available, if libcxx is built at the same26# time. This is important if clang is set to prefer libc++ over libstdc++27if(TARGET cxx-headers)28  add_dependencies(offload-tblgen cxx-headers)29endif()30 31set(OFFLOAD_TABLEGEN_EXE "${OFFLOAD_TABLEGEN_EXE}" CACHE INTERNAL "")32set(OFFLOAD_TABLEGEN_TARGET "${OFFLOAD_TABLEGEN_TARGET}" CACHE INTERNAL "")33