gcode-mirror / ai-contest

Automatically exported from code.google.com/p/ai-contest
0 stars 1 forks source link

returns None for C language #192

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
compile_anything.py script returns compilation error for my C bot.

There was an unspecificed Error. (compile_function returned None.)

I downloaded and started the script for my bot.
It compiles ok! I get MyBot executable. The problem is with this:

====================================================================
  if language == "C":
    nukeglob('*.o')
    nukeglob('MyBot')
    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'])
    check_path('MyBot')
====================================================================

Why this code doesn't return a value? It returns value for any other language 
except C.

Original issue reported on code.google.com by buratin....@gmail.com on 8 Oct 2010 at 4:45

GoogleCodeExporter commented 9 years ago

Original comment by jokeserver on 8 Oct 2010 at 5:29