blob: 2bc40119261aacb5626ed147d74c454c5d14bc14 [file] [log] [blame]
Mikhail Glushenkov30207702008-10-16 14:02:29 +00001// A simple wrapper for gcc.
2// To compile, use this command:
3//
4// $ cd $LLVMC2_DIR
5// $ make DRIVER_NAME=mygcc BUILTIN_PLUGINS=Simple
6//
7// To build this plugin as a dynamic library:
8//
9// $ cd $LLVMC2_DIR
10// $ make BUILTIN_PLUGINS=""
11// $ cd plugins/Simple
12// $ make
13//
14// Run as:
15//
16// $ llvmc2 -load $LLVM_DIR/Release/lib/LLVMCSimple.so
17
18include "llvm/CompilerDriver/Common.td"
19
20def gcc : Tool<
21[(in_language "c"),
22 (out_language "executable"),
23 (output_suffix "out"),
24 (cmd_line "gcc $INFILE -o $OUTFILE"),
25 (sink)
26]>;
27
28def LanguageMap : LanguageMap<[LangToSuffixes<"c", ["c"]>]>;
29
30def CompilationGraph : CompilationGraph<[Edge<root, gcc>]>;