Files
r8asm_rev-fork/src
starcells f68d68d497 build: stop throwing the compiler's default flags away
set(CMAKE_CXX_FLAGS ...) replaced the whole flag set.  On MSVC that
dropped /EHsc, which this code needs (std::map::at, std::stoi throw), and
it applied -O3 to every configuration -- a Debug build then passes /RTC1
and MSVC refuses to combine that with an optimisation level (D8016).

CMake's Release configuration already passes -O3 / /O2 and defines
NDEBUG, so the block is gone.  The only flag worth keeping is
-march=native, and only for a Release build of a non-MSVC compiler.

Also cast the cell-size constants so the size_t -> int32_t narrowing
warnings go away.
2026-11-05 22:49:54 +08:00
..