Skip to content

Pass C runtime that is linked with libcob in cobc for MSVC - #300

Open
oguzcankirmemis wants to merge 2 commits into
OCamlPro:gitside-gnucobol-3.xfrom
oguzcankirmemis:fix/ci-msvc-crt
Open

Pass C runtime that is linked with libcob in cobc for MSVC#300
oguzcankirmemis wants to merge 2 commits into
OCamlPro:gitside-gnucobol-3.xfrom
oguzcankirmemis:fix/ci-msvc-crt

Conversation

@oguzcankirmemis

Copy link
Copy Markdown

The current version does not ensure that the C runtimes of libcob and compiled target match. This can cause undefined behavior if there is a communication between the two C runtimes, like passing a FILE pointer from one to another. This also fixes the issue with two failing CI tests (CBL_GC_HOSTED, COB_SIGNAL_REGIME) that is otherwise failing in MSVC builds.

The current version does not ensure that the C runtimes of libcob
and compiled target match. This can cause undefined behavior if
there is a communication between the two C runtimes, like passing
a FILE pointer from one to another. This also fixes the issue
with two failing CI tests (CBL_GC_HOSTED, COB_SIGNAL_REGIME) that
is otherwise failing in MSVC builds.

Signed-off-by: Oguzcan Kirmemis <oguzcan.kirmemis@gmail.com>
@GitMensch

Copy link
Copy Markdown
Collaborator

the commit needs to be split - I'll to the cobc part upstream now

Update changelog to reflect changes in cobc.c regarding new macros for Windows builds.
@ddeclerck

ddeclerck commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Non-CI parts merged in SVN @ 5691.
I'll update the CI parts separately.

Thanks for this PR !

@GitMensch

Copy link
Copy Markdown
Collaborator

Can be closed as soon as the CI parts are checked in, ideally with a clean merge :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants