Commit 9f09235
Fix /O2 regression on common code and typo'd CMAKE_C_FLAGS variables
The previous compile-options change moved /O2 from the global CMAKE_CXX_FLAGS_RELWITHDEBINFO to a target-specific COMPILE_OPTIONS on only `goldp` and `legoracers`. That dropped `common_goldp` and `common_legoracers` to no optimization, breaking match for any function in common code (e.g. GolFatalError 100% -> 15.58%, GolNameTable methods, GolImgFile, GolTgaFile).
Add common_goldp and common_legoracers to the same target list so they get the same /O2 / /Od / /Os config-dependent flags as goldp/legoracers.
Also fix the CMAKE_C_FLAGS_* variable references which had stray "XX" infixes ("CMAKE_C_FLAGSXX_DEBUG" instead of "CMAKE_CXX_FLAGS_DEBUG", etc.) — those expanded to empty strings and left the C compile flags effectively unset.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b72bd9e commit 9f09235
1 file changed
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| |||
0 commit comments