2008-05-30 14:14:42 +08:00
|
|
|
// A simple wrapper for gcc.
|
2008-05-30 14:16:32 +08:00
|
|
|
// To compile, use this command:
|
2008-10-03 17:09:34 +08:00
|
|
|
// TOFIX
|
2008-05-30 14:14:42 +08:00
|
|
|
|
|
|
|
include "Common.td"
|
|
|
|
|
|
|
|
def gcc : Tool<
|
|
|
|
[(in_language "c"),
|
|
|
|
(out_language "executable"),
|
|
|
|
(output_suffix "out"),
|
|
|
|
(cmd_line "gcc $INFILE -o $OUTFILE"),
|
|
|
|
(sink)
|
|
|
|
]>;
|
|
|
|
|
|
|
|
def LanguageMap : LanguageMap<[LangToSuffixes<"c", ["c"]>]>;
|
|
|
|
|
|
|
|
def CompilationGraph : CompilationGraph<[Edge<root, gcc>]>;
|