decomp.me
decomp.me copied to clipboard
[BUG] Watcom invalid option with "-0"
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:
- Go to https://decomp.me/scratch/3iFaP
- Click on Options
- Change "Code generation" to "-0"
- Expand Problems panel to see error
Expected behavior Compilation without error