Files @ d9774c9084d7
Branch filter:

Location: CSY/reowolf/examples/make.py

Christopher Esterhuyse
more logging, testing, examples and bugfixes: (1) components remember whether they have submitted a solution; only those are considered when selecting a branch at the end of a round, (2) retrying active connections during setup phase were using the wrong index for looking up their TODO structure, (3) recently failed connections are deregistered from mio and reregistered after the retry process restarts s.t. they don't produce a storm of mio events
import os, glob, subprocess, time
script_path = os.path.dirname(os.path.realpath(__file__));
for c_file in glob.glob(script_path + "/*/*.c", recursive=False):
  print("compiling", c_file)
  args = [
    "gcc",          # compiler
    "-L",           # lib path flag
    "./",           # where to look for libs
    "-lreowolf_rs", # add lib called "reowolf_rs"
    "-Wl,-R./",     # pass -R flag to linker: produce relocatable object
    c_file,         # input source file
    "-o",           # output flag
    c_file[:-2]     # output filename
  ];
  subprocess.run(args)
input("Blocking until newline...");