[Lunar-commits] r18957 - lunar/trunk/var/lib/lunar/functions

Auke Kok sofar at lunar-linux.org
Wed Mar 1 06:44:17 UTC 2006


Author: sofar
Date: 2006-03-01 06:44:15 +0000 (Wed, 01 Mar 2006)
New Revision: 18957

Modified:
   lunar/trunk/var/lib/lunar/functions/build.lunar
Log:
Add wrapper support back, some minor important optimizations.


Modified: lunar/trunk/var/lib/lunar/functions/build.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/build.lunar	2006-03-01 06:28:17 UTC (rev 18956)
+++ lunar/trunk/var/lib/lunar/functions/build.lunar	2006-03-01 06:44:15 UTC (rev 18957)
@@ -358,14 +358,19 @@
 
 run_build()  {
   debug_msg "run_build ($@)"
-  if [ -d "$SOURCE_DIRECTORY" ] ; then
+  if [[ -d "$SOURCE_DIRECTORY" ]] ; then
     cd $SOURCE_DIRECTORY
   fi
 
   verbose_msg "building \"$MODULE\" version \"$VERSION\" in `pwd`"
   
+  # this calls optimizations and others:
   plugin_call BUILD_BUILD $MODULE
-  if [ -s $SCRIPT_DIRECTORY/BUILD ] ; then
+  # now override compile wrappers if needed:
+  if [[ "${USE_WRAPPERS:-yes}" == "yes" ]]; then
+    export PATH=/var/lib/lunar/compilers:$PATH
+  fi
+  if [[ -s $SCRIPT_DIRECTORY/BUILD ]] ; then
     run_module_file $MODULE BUILD
   else
     default_build



More information about the Lunar-commits mailing list