aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-04-07 19:05:04 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-04-07 19:05:04 -0400
commit657c908f88598700985facf9fee37e875fbc276d (patch)
tree5ab7dfe336979f1f7916f5de96c067780afc6d9c /klippy/chelper.py
parentd7a0e22d59becb3467f3069dd6030b1e7b4e0fb9 (diff)
downloadkutter-657c908f88598700985facf9fee37e875fbc276d.tar.gz
kutter-657c908f88598700985facf9fee37e875fbc276d.tar.xz
kutter-657c908f88598700985facf9fee37e875fbc276d.zip
stepcompress: Modify check_expand() into check_push()
Add the new item at the same time as checking if there is space in the queue. Also, update the default optimization level of c_helper.so to O2 to improve the compiled code layout. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper.py')
-rw-r--r--klippy/chelper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/chelper.py b/klippy/chelper.py
index 230f6a3d..b05bc74c 100644
--- a/klippy/chelper.py
+++ b/klippy/chelper.py
@@ -6,7 +6,7 @@
import os, logging
import cffi
-COMPILE_CMD = "gcc -Wall -g -O -shared -fPIC -o %s %s"
+COMPILE_CMD = "gcc -Wall -g -O2 -shared -fPIC -o %s %s"
SOURCE_FILES = ['stepcompress.c', 'serialqueue.c', 'pyhelper.c']
DEST_LIB = "c_helper.so"
OTHER_FILES = ['list.h', 'serialqueue.h', 'pyhelper.h']