Skip to content

watcom.mak: link with /noi so symbol case is kept - #196

Merged
PerditionC merged 1 commit into
masterfrom
watcom-link-noi
Dec 3, 2026
Merged

PerditionC merged 1 commit into
masterfrom
watcom-link-noi

Conversation

@PerditionC

Copy link
Copy Markdown
Contributor

FreeCOM links through ms2wlink (shell/wlinker.bat). Open Watcom 2.0 updated so ms2wlink behaves like MS LINK and emits "option nocaseexact" unless /NOI is given. FreeCOM suppl function toUpper conflicts with the C library toupper when linked case-insensitively causing corruption and potential hangs when compiled with OW v2 snapshots after Oct 2025.

Pass /noi so the link stays case-sensitive, as it always was previously and is with OW 1.9's ms2wlink.

FreeCOM links through ms2wlink (shell/wlinker.bat).  Open Watcom 2.0
updated so ms2wlink behaves like MS LINK and emits
"option nocaseexact" unless /NOI is given.  FreeCOM suppl function toUpper
conflicts with the C library toupper when linked case-insensitively causing
corruption and potential hangs when compiled with OW v2 snapshots after Oct 2025.

Pass /noi so the link stays case-sensitive, as it always was previously and
is with OW 1.9's ms2wlink.
Copilot AI balanced review requested due to automatic review settings December 3, 2026 01:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the change preserving case-sensitive FreeCOM linking.

No open issues 🎉

What changed in this PR

Preserves case-sensitive linking for FreeCOM with newer Open Watcom snapshots, preventing collisions between toUpper and toupper.

Changes:

  • Adds /noi to the wlinker invocation so ms2wlink retains symbol case.
File Description
mkfiles/​watcom.mak Adds /noi to preserve case-sensitive linking.

Review effort: Balanced

@PerditionC
PerditionC merged commit 352c845 into master Dec 3, 2026
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants