vala r1683 - in trunk: . compiler



Author: rasa
Date: Mon Jul  7 14:48:54 2008
New Revision: 1683
URL: http://svn.gnome.org/viewvc/vala?rev=1683&view=rev

Log:
2008-07-07  Raffaele Sandrini  <raffaele sandrini ch>

	* compiler/valacompiler.vala:

	Inspect CC environment variable to recognize a C compiler, based on
	patch by Piotr Skamruk, fixes bug 501686


Modified:
   trunk/ChangeLog
   trunk/compiler/valacompiler.vala

Modified: trunk/compiler/valacompiler.vala
==============================================================================
--- trunk/compiler/valacompiler.vala	(original)
+++ trunk/compiler/valacompiler.vala	Mon Jul  7 14:48:54 2008
@@ -302,6 +302,9 @@
 
 		if (!ccode_only) {
 			var ccompiler = new CCodeCompiler ();
+			if (cc_command == null && Environment.get_variable ("CC") != null) {
+				cc_command = Environment.get_variable ("CC");
+			}
 			if (cc_options == null) {
 				ccompiler.compile (context, cc_command, new string[] { null });
 			} else {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]