summaryrefslogtreecommitdiff
path: root/cpp/config/TestUtil.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2005-11-15 14:20:05 +0000
committerDwayne Boone <dwayne@zeroc.com>2005-11-15 14:20:05 +0000
commitfafddd931ab2031eeb755942badca8a15d47913f (patch)
treea44f48a6798aaf790f9de29df97b45cbd824ad33 /cpp/config/TestUtil.py
parentfixing clean rule and restructuring targets (diff)
downloadice-fafddd931ab2031eeb755942badca8a15d47913f.tar.bz2
ice-fafddd931ab2031eeb755942badca8a15d47913f.tar.xz
ice-fafddd931ab2031eeb755942badca8a15d47913f.zip
Bug 629 - Check whether optimized on windows to determine icebox executable
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r--cpp/config/TestUtil.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py
index c6e47b7eadb..765cb60bae8 100644
--- a/cpp/config/TestUtil.py
+++ b/cpp/config/TestUtil.py
@@ -47,6 +47,15 @@ host = "127.0.0.1"
import sys, os, re
+def isOptimize():
+
+ rules = open(os.path.join(toplevel, "config", "Make.rules"), "r")
+ optimize = re.compile("^OPTIMIZE[ \t=]*yes", re.M).search(rules.read())
+ if optimize == None:
+ return 0
+ else:
+ return 1
+
def getIceVersion():
config = open(os.path.join(toplevel, "include", "IceUtil", "Config.h"), "r")