Files @ d23010006486
Branch filter:

Location: CSY/reowolf/examples/make.py

Christopher Esterhuyse
bugfix: increment round index on recovery to avoid mixing messages once we switch away from tcp. refactoring communication internals to simplify bookkeeping structures. more consts in tests to make them terser
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...");