github.com/zyedidia/knit@v1.1.2-0.20230901152954-f7d4e39a0e24/test/sub_build/test.toml (about)

     1  name = "Sub builds"
     2  
     3  [flags]
     4  
     5  knitfile = "Knitfile"
     6  ncpu = 1
     7  dryrun = true
     8  
     9  [[builds]]
    10  
    11  args = []
    12  output = """\
    13  cc -c f1.c -o f1.o
    14  cc -c f2.c -o f2.o
    15  cc -c f3.c -o f3.o
    16  [libfoo] cc -c bar.c -o bar.o
    17  [libfoo] cc -c foo.c -o foo.o
    18  [libfoo] ar -rcs libfoo.a bar.o foo.o
    19  cc f1.o f2.o f3.o libfoo/libfoo.a -o prog
    20  """
    21  
    22  [[builds]]
    23  
    24  args = ["libfoo/all"]
    25  output = """\
    26  [libfoo] cc -c bar.c -o bar.o
    27  [libfoo] cc -c foo.c -o foo.o
    28  [libfoo] ar -rcs libfoo.a bar.o foo.o
    29  [libfoo/libbar] echo "hi" > libbar.a
    30  """