Added compile flags to speed up compile process (duh)

This commit is contained in:
Philip Trauner 2016-04-04 13:13:11 +02:00
parent 2e25864eec
commit 8f20f9cb24

View file

@ -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():