Closed skvadrik closed 2 years ago
@sergeyklay https://github.com/skvadrik/re2c/pull/387/commits/2017418cd65d28eaed12713c6c96b06cd851674c could be interesting to you as it was not at all obvious that we were testing a slightly wrong configuration (I noticed it accidentally). See one of the old builds that disabled Go support in the "full" config: https://github.com/skvadrik/re2c/runs/4293511127?check_suite_focus=true#step:12:14
Very interesting 🤔 Thank you!
Otherwise variable definitions from "fast" configuration take precedence over the "full" configuration, resulting in disabling some important configrations, such as Go language support.
For example, if "fast" is inherited before "full" we have the following incorrect configrations that sets RE2C_BUILD_RE2GO:BOOL="FALSE":
$ cmake -S .. --preset=linux-gcc-release-ootree-skeleton-full Preset CMake variables:
But if "full" is inherited after "fast" we have the following (correct):
$ cmake -S .. --preset=linux-gcc-release-ootree-skeleton-full Preset CMake variables: