Skip to content

fix: F1-F12 keys, /Zc:preprocessor under nvcc, libhv log file - #21

Merged
codethinki merged 3 commits into
masterfrom
fix/keys-nvcc-libhv-log
Oct 22, 2026
Merged

codethinki merged 3 commits into
masterfrom
fix/keys-nvcc-libhv-log

Conversation

@codethinki

Copy link
Copy Markdown
Owner

found while adding cth to tetris_ai3 as a submodule

  • fix(win): to_key_state_generic returned Key::NONE for VK_F1-VK_F12, the reverse mapping already existed
  • fix(build): cth::cth passed /Zc:preprocessor to every language, nvcc takes it for a second input file (nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified). now CXX only, CUDA gets -Xcompiler=/Zc:preprocessor for its MSVC host compiler (the host code still needs __VA_OPT__)
  • fix(net): libhv's default logger wrote libhv.<date>.log into the working directory. websocket_server routes libhv warnings and errors to cth::log, no file
    • libhv's logger is process wide, set on the first websocket_server construction

tested (msvc debug)

  • all 305 tests pass
  • cth_net_tests leaves no log file, before: libhv.20261022.log
  • a CUDA project linking cth::cth through add_subdirectory builds, before: nvcc fatal

🤖 Generated with Claude Code

Lukas Thomann and others added 3 commits October 22, 2026 18:48
to_key_state_generic returned Key::NONE for VK_F1-VK_F12, the reverse mapping already existed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cth::cth passed /Zc:preprocessor to every language, nvcc takes it for a second input file.
CUDA gets -Xcompiler=/Zc:preprocessor for its MSVC host compiler instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
libhv's default logger wrote its INFO messages into a file in the working directory.
websocket_server forwards libhv warnings and errors to cth::log, no file is written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codethinki
codethinki enabled auto-merge (squash) October 22, 2026 17:01
@codethinki
codethinki merged commit c013bf9 into master Oct 22, 2026
6 checks passed
@codethinki
codethinki deleted the fix/keys-nvcc-libhv-log branch October 22, 2026 17:06
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.

1 participant