From 8f20f9cb244272ecd8c7eab9d5b4f7850d92ca8e Mon Sep 17 00:00:00 2001 From: Philip Trauner Date: Mon, 4 Apr 2016 13:13:11 +0200 Subject: [PATCH] Added compile flags to speed up compile process (duh) --- Server/Server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Server.py b/Server/Server.py index b9aa609..e2d7780 100644 --- a/Server/Server.py +++ b/Server/Server.py @@ -126,7 +126,7 @@ class Compile(Routing.ServerRoute): if not os.path.exists(full_path): os.mkdir(full_path) error = True - p = Popen(["gcc", "-o", "%s" % full_path + "/botball_user_program", path + relpath], stdout=PIPE, stderr=PIPE) + p = Popen(["gcc", "-pipe", "-O0", "-o", "%s" % full_path + "/botball_user_program", path + relpath], stdout=PIPE, stderr=PIPE) error = False if p.wait() == 0 else True result = "" for line in p.communicate():