dolik-rce / pegof

PEG grammar optimizer and formatter
Other
9 stars 2 forks source link

Build and compile on NetBSD #27

Open dolik-rce opened 1 month ago

dolik-rce commented 1 month ago

FYI @leleliu008: I have tried slightly different approach for the NetBSD. Using cross-platform-actions/action that runs the build in QEMU, to make sure the problem is not in the cross-compilation. It's even slightly better IMHO, because it allows to test the resulting binary.

Bad news is that it still fails on missing <filesystem> on the 9.x versions. Good news is that the code successfully compiles on NetBSD 10.0, there is probably newer gcc. It than fails the tests (in very similar way to macOS), but that should be fixable.

leleliu008 commented 1 month ago

I am on a trip for the next few days. I will continue after I am back.

github-actions[bot] commented 1 month ago

Coverage after merging netbsd into devel will be

84.94% 0.00%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
build.d
   version.cc100%100%100%100%
src
   checker.cc56.82%100%78.57%54.24%108, 138–141, 144–147, 149, 151–157, 161–164, 166–170, 177–181, 189–194, 25–26, 28, 31, 34–35, 38, 40–41, 55–56, 85–90
   checker.h100%100%100%100%
   config.cc69.06%100%77.27%68.16%101–103, 136, 144–145, 148–149, 156, 160, 163, 169–170, 172–173, 177–178, 180–181, 183–184, 186–189, 191, 194, 199, 203, 208, 275, 289, 300–302, 307, 309, 313, 318–320, 325, 356–357, 73, 75–82, 84–85, 88–91, 93–94, 96–98
   config.h100%100%100%100%
   log.cc100%100%100%100%
   log.h88.64%100%78.26%100%
   main.cc82.61%100%100%81.82%13, 23, 52–54, 61, 69–74
   optimizer.cc97.62%100%100%97.36%455–456, 522–524, 526–528, 530–531
   packcc_wrapper.c100%100%100%100%
   parser.cc89.07%100%92.31%88.54%149–152, 155–156, 178, 189, 208–212, 215–219
   parser.h100%100%100%100%
   utils.cc83.33%100%93.33%81.72%102–105, 109, 115, 129, 147–148, 35, 45, 80, 87–90, 94
src/ast
   action.cc87.30%100%75%90.20%7, 72–73, 76–77
   action.h100%100%100%100%
   alternation.cc90%100%88.24%90.41%110–111, 19–20, 54, 6, 69
   alternation.h100%100%100%100%
   capture.cc69.84%100%66.67%70.59%21–22, 26–27, 37, 42, 45, 5, 59, 67–68, 75–76, 79–80
   capture.h100%100%100%100%
   character_class.cc91.53%100%91.30%91.56%11–14, 159, 177–179, 39, 42–43, 58–59
   character_class.h100%100%100%100%
   code.cc78.05%100%71.43%79.41%29, 37, 43–44, 7–9
   code.h100%100%100%100%
   directive.cc91.55%100%75%93.65%5, 79, 88–89
   directive.h100%100%100%100%
   expand.cc80.43%100%72.73%82.86%20, 4, 42–43, 46–47
   expand.h100%100%100%100%
   grammar.cc80.31%100%78.57%80.53%123, 133, 135–136, 141, 147–148, 17–18, 20–22, 47, 5, 68–69, 81, 87–88, 9, 96–97
   grammar.h100%100%100%100%
   group.cc90.28%100%100%87.72%21–22, 26–27, 42, 45, 59
   group.h100%100%100%100%
   node.cc74.53%100%76.47%74.16%113–129, 133–134, 15–16, 30, 73
   node.h93.41%100%92.31%94.87%104, 122
   reference.cc90.91%100%90.91%90.91%19, 41, 45, 5
   reference.h100%100%100%100%
   rule.cc76.74%100%72.22%77.94%22–23, 37, 5, 54, 66–69, 76–79, 82–83
   rule.h100%100%100%100%
   sequence.cc92.63%100%94.44%92.21%16–17, 4, 48, 57, 83
   sequence.h100%100%100%100%
   string.cc97.37%100%100%96.43%22
   string.h100%100%100%100%
   term.cc86.78%100%88.24%86.43%110, 122, 124, 155–157, 179–181, 183–185, 4, 59–60, 73–74, 90, 98
   term.h100%100%100%100%