Skip to content

Commit

Permalink
add new flags to output dependencies
Browse files Browse the repository at this point in the history
Flags following gcc options: -M to output deps only, -MD to output
  deps while compiling (in .d files), -MP to output phony targets, -MG
  to keep missing copybooks, -MQ <target> to Makefile-quote target

Additional flags specific to GnuCOBOL: -foneline-deps outputs all
dependencies on a single line instead of multiple lines;
-fcopybook-deps outputs only copybook names instead of file
paths. -fcopybook-deps also forces -E, -foneline-deps, -MT=copybooks,
disables errors on missing copybooks and remove output on stdout.
  • Loading branch information
lefessan committed Mar 15, 2024
1 parent 89c45a3 commit 5f4f4bc
Show file tree
Hide file tree
Showing 8 changed files with 474 additions and 92 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,16 @@ jobs:
path: _build/install.log

- name: check
continue-on-error: true
run: |
cd _build/tests
make check TESTSUITEFLAGS="--jobs=$(($(nproc)+1))" || (echo "not all tests passed")
make check TESTSUITEFLAGS="--jobs=$(($(nproc)+1))"
make test
shell: msys2 {0}


- name: Upload testsuite.log
uses: actions/upload-artifact@v3
if: failure()
with:
name: testsuite.log
path: _build/tests/testsuite.log
16 changes: 16 additions & 0 deletions cobc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@

2024-03-15 Fabrice Le Fessant <[email protected]>

* cobc.c: add new flags to output dependencies following gcc: -M to
output deps only, -MD to output deps while compiling (in .d files),
-MP to output phony targets, -MG to keep missing copybooks,
-MQ <target> to Makefile-quote target

2024-03-15 Fabrice Le Fessant <[email protected]>

* cobc.c, flags.def: add new flags to output dependencies:
-foneline-deps outputs all dependencies on a single line instead of
multiple lines; -fcopybook-deps outputs only copybook names instead
of file paths. -fcopybook-deps also forces -E, -foneline-deps,
-MT=copybooks, disables errors on missing copybooks and removes
output on stdout.

2024-02-19 Boris Eng <[email protected]>

* parser.y (screen_value_clause): replaced basic literals by literals
Expand Down
Loading

0 comments on commit 5f4f4bc

Please sign in to comment.