added a new option --with-production, it add #define CMK_OPTIMIZE into ocnv-mach... charm-6.2.0-pre0
authorGengbin Zheng <gzheng@gzheng-desktop.(none)>
Fri, 12 Feb 2010 01:32:45 +0000 (19:32 -0600)
committerGengbin Zheng <gzheng@gzheng-desktop.(none)>
Fri, 12 Feb 2010 01:32:45 +0000 (19:32 -0600)
build

diff --git a/build b/build
index 494795ed9cc4aa1a105adce61f6f55b4dbbc63c8..a5b2ade256b4f0a425f485a9bfc545fd34766927 100755 (executable)
--- a/build
+++ b/build
@@ -207,6 +207,7 @@ INCDIR=
 ARCH=
 BUILD_SHARED=
 WITH_ROMIO=
+WITH_PRODUCTION=
 BUILD_EMULATOR=0
 DESTINATION=""
 DESTINATION_SUFFIX=""
@@ -294,6 +295,10 @@ do
     --with-romio)
                WITH_ROMIO="true"; shift
                ;;
+    --with-production)
+               WITH_PRODUCTION="true" 
+               shift
+               ;;
     --build-shared|-bs)
                # obsolete, do nothing
                shift
@@ -520,6 +525,10 @@ then
     echo "CMK_AMPI_WITH_ROMIO=\"true\"" >> $ConvSh
 fi
 
+if test -n "$WITH_PRODUCTION"
+then
+    echo '#define CMK_OPTIMIZE' >> $ConvHeader
+fi
 
 # build with Tau
 WITH_TAU=0