llvm-project/llvm/cmake/modules/llvm-driver-template.cpp.in
Nikita Popov 6bc8163c79 [cmake] Export driver template to fix standalone build
Export the driver-template.cpp.in file so that tools using
GENERATE_DRIVER work in standalone builds (currently only relevant
for clang). I've given the file an llvm- prefix, as we're now
searching for the file in CMAKE_MODULE_PATH.

Differential Revision: https://reviews.llvm.org/D127384
2022-06-10 09:50:23 +02:00

12 lines
489 B
C++

//===-- driver-template.cpp -----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
int @TOOL_NAME@_main(int argc, char **argv);
int main(int argc, char **argv) { return @TOOL_NAME@_main(argc, argv); }