Index: gobject/valaccodecompiler.vala =================================================================== --- gobject/valaccodecompiler.vala (revision 497) +++ gobject/valaccodecompiler.vala (working copy) @@ -78,7 +78,11 @@ // TODO compile the C code files in parallel if (cc_command == null) { - cc_command = "cc"; + string cc = Environment.get_variable("CC"); + if (cc == null) + cc_command = "cc"; + else + cc_command = cc; } string cmdline = cc_command; if (context.debug) {