OCamlPro / gnucobol

A clone of the sourceforge GnuCOBOL compiler from COBOL to C.
https://get-superbol.com
GNU Lesser General Public License v3.0
16 stars 20 forks source link

[WIP] Add a settings file to configure cobc at runtime #117

Open lefessan opened 9 months ago

lefessan commented 9 months ago

New --settings=FILE can be used to configure flags that are normally set at compile time. These settings can be used typically to create cross-compilers by retargetting an existing compiler.

Also add a setting to make the compiler relocatable, i.e. compute paths of include, share, etc. relative to cobc's location.

codecov-commenter commented 9 months ago

Codecov Report

Merging #117 (ebc7f78) into gcos4gnucobol-3.x (c0d64ad) will decrease coverage by 0.25%. The diff coverage is 19.44%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

@@                  Coverage Diff                  @@
##           gcos4gnucobol-3.x     #117      +/-   ##
=====================================================
- Coverage              65.74%   65.49%   -0.25%     
=====================================================
  Files                     32       34       +2     
  Lines                  59092    59345     +253     
  Branches               15575    15679     +104     
=====================================================
+ Hits                   38849    38869      +20     
- Misses                 14262    14457     +195     
- Partials                5981     6019      +38     
Files Coverage Δ
cobc/typeck.c 65.28% <ø> (ø)
cobc/ppparse.y 61.85% <0.00%> (-0.12%) :arrow_down:
cobc/cobc.c 72.02% <41.66%> (-0.37%) :arrow_down:
cobc/settings.def 0.00% <0.00%> (ø)
cobc/codegen.c 75.09% <19.81%> (-0.90%) :arrow_down:
cobc/settings.c 17.59% <17.59%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more