Open GoogleCodeExporter opened 8 years ago
Index: compile_anything.py
===================================================================
--- compile_anything.py (revision 380)
+++ compile_anything.py (working copy)
@@ -99,11 +99,11 @@
for source in sources:
object_file = \
source.replace(".cc", "").replace(".cpp", "").replace(".c", "") + ".o"
- out, err = system(['g++', '-O3', '-funroll-loops', '-c', '-o', \
+ out, err = system(['g++', '-Os', '-mtune=native', '-c', '-o', \
object_file, source])
out_message += out
err_message += err
- out, err = system(['g++', '-O2', '-o', 'MyBot'] + safeglob('*.o') +
['-lm'])
+ out, err = system(['g++', '-O2', '-mtune=native', '-fwhopr', '-o',
'MyBot'] + safeglob('*.o') + ['-lm'])
out_message += out
err_message += err
err_message += check_path('MyBot')
@@ -114,8 +114,8 @@
sources = safeglob('*.c')
for source in sources:
object_file = source.replace(".c", "") + ".o"
- system(['gcc', '-O3', '-funroll-loops', '-c', '-o', object_file, source])
- system(['gcc', '-O2', '-o', 'MyBot'] + safeglob('*.o') + ['-lm'])
+ system(['gcc', '-Os', '-mtune=native', '-c', '-o', object_file, source])
+ system(['gcc', '-O2', '-mtune=native', '-fwhopr', '-o', 'MyBot'] +
safeglob('*.o') + ['-lm'])
check_path('MyBot')
if language == "Go":
nukeglob('*.6')
Original comment by brian%tr...@gtempaccount.com
on 29 Sep 2010 at 12:24
Original comment by janzert
on 6 Nov 2010 at 3:49
Original issue reported on code.google.com by
brian%tr...@gtempaccount.com
on 29 Sep 2010 at 12:19