mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-10-03 15:38:36 +00:00
-O2 is now officially supported
This commit is contained in:
@@ -182,7 +182,7 @@ static void *http_request(void *u_h_r)
|
||||
struct uwsgi_http_req *ur = (struct uwsgi_http_req *) u_h_r ;
|
||||
|
||||
int clientfd = ur->fd;
|
||||
int uwsgi_fd;
|
||||
int uwsgi_fd = -1;
|
||||
|
||||
int need_to_read = 1;
|
||||
int state = uwsgi_http_method;
|
||||
|
||||
@@ -63,7 +63,7 @@ void check_route(struct uwsgi_server *uwsgi, struct wsgi_request *wsgi_req) {
|
||||
void uwsgi_route_action_wsgi(struct uwsgi_server *uwsgi, struct wsgi_request *wsgi_req, struct uwsgi_route *ur) {
|
||||
|
||||
int i;
|
||||
PyObject *route_py_callbase, *route_py_dict;
|
||||
PyObject *route_py_callbase, *route_py_dict = NULL;
|
||||
|
||||
uwsgi_log("managing WSGI route...\n");
|
||||
if (ur->callable == NULL) {
|
||||
@@ -106,7 +106,7 @@ void uwsgi_route_action_wsgi(struct uwsgi_server *uwsgi, struct wsgi_request *ws
|
||||
|
||||
void uwsgi_route_action_uwsgi(struct uwsgi_server *uwsgi, struct wsgi_request *wsgi_req, struct uwsgi_route *ur) {
|
||||
|
||||
PyObject *route_py_callbase, *route_py_dict;
|
||||
PyObject *route_py_callbase, *route_py_dict = NULL ;
|
||||
int i;
|
||||
|
||||
uwsgi_log("managing uwsgi route...\n");
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ gcc_list = ['utils', 'pyutils', 'protocol', 'socket', 'logging', 'wsgi_handlers'
|
||||
|
||||
# large file support
|
||||
try:
|
||||
cflags = ['-Wall', '-Werror', '-Wextra', '-Wno-unused-parameter', '-Wno-missing-field-initializers', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64'] + os.environ.get("CFLAGS", "").split()
|
||||
cflags = ['-O2', '-fno-strict-aliasing', '-Wall', '-Werror', '-Wextra', '-Wno-unused-parameter', '-Wno-missing-field-initializers', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64'] + os.environ.get("CFLAGS", "").split()
|
||||
except:
|
||||
print("You need python headers to build uWSGI.")
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user