Hi,

here is a little patch for passing extra vmargs on the commandline.
For every vmarg, you need to add a "--vmarg <arg>" to the command line.


Maybe it is useful for someone else as well.

Christian

Andi Vajda schrieb:

On Tue, 18 Aug 2009, Christian Kofler wrote:

would it be possible to pass additional vmargs to JCC?

Adding support for a --vmargs command line argument to JCC could be
done. Out of curiosity, what extra VM parameter were you thinking of
using ?

Andi..
Index: jcc/cpp.py
===================================================================
--- jcc/cpp.py	(Revision 806087)
+++ jcc/cpp.py	(Arbeitskopie)
@@ -280,6 +280,7 @@
     dist = False
     wininst = False
     compiler = None
+    extraVmArgs = ''
 
     i = 1
     while i < len(args):
@@ -371,6 +372,9 @@
             elif arg == '--reserved':
                 i += 1
                 RESERVED.update(args[i].split(','))
+            elif arg == '--vmarg':
+                i += 1
+                extraVmArgs += ' ' + args[i]
             else:
                 raise ValueError, "Invalid argument: %s" %(arg)
         else:
@@ -380,6 +384,8 @@
     vmargs = '-Djava.awt.headless=true'
     if libpath:
         vmargs += ' -Djava.library.path=' + os.pathsep.join(libpath)
+    if extraVmArgs:
+        vmargs += extraVmArgs
 
     env = initVM(os.pathsep.join(classpath) or None,
                  maxstack='512k', vmargs=vmargs)

Reply via email to