blob: 88d4f0e66bfe9d7b9f9ad4cda5e0d9705da69b56 [file] [log] [blame]
Mikhail Glushenkov1ce87222008-05-30 06:14:42 +00001// A simple wrapper for gcc.
Mikhail Glushenkovee4d1d02008-05-30 06:16:32 +00002// To compile, use this command:
3// make TOOLNAME=llvmc_simple GRAPH=examples/Simple.td
Mikhail Glushenkov1ce87222008-05-30 06:14:42 +00004
5include "Common.td"
6
7def gcc : Tool<
8[(in_language "c"),
9 (out_language "executable"),
10 (output_suffix "out"),
11 (cmd_line "gcc $INFILE -o $OUTFILE"),
12 (sink)
13]>;
14
15def LanguageMap : LanguageMap<[LangToSuffixes<"c", ["c"]>]>;
16
17def CompilationGraph : CompilationGraph<[Edge<root, gcc>]>;