decomp.me icon indicating copy to clipboard operation
decomp.me copied to clipboard

[BUG] Watcom invalid option with "-0"

Open CUB3D opened this issue 7 months ago • 0 comments

Describe the bug Trying to use either -0, -1 or -2 (Optimize for i286/i186/i086) with any Watcom compiler fails to compile with the error "E1073: Invalid option: '-0'"

I believe this is because WATCOM_CC is always wcc386 here which according to its help output only supports -3r and above. For these older targets wcc should be used which uses optimization settings -0 -> -6

To Reproduce Steps to reproduce the behavior:

  1. Go to https://decomp.me/scratch/3iFaP
  2. Click on Options
  3. Change "Code generation" to "-0"
  4. Expand Problems panel to see error

Expected behavior Compilation without error

CUB3D avatar Aug 15 '25 17:08 CUB3D