From 657c908f88598700985facf9fee37e875fbc276d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 7 Apr 2017 19:05:04 -0400 Subject: 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 --- klippy/chelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/chelper.py') 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'] -- cgit v1.2.3-70-g09d2