docs(build): point the antivirus note at the relinker tests' test-temp #8619
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8619"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by mantavisual on 2026-10-20T18:37:33Z.
What
BUILD.md tells Windows users whose antivirus quarantines the relinker tests' executables to "Set
TEMPandTMPto a directory the scanner excludes before runningctest". Since39dd854c8("keep test artifacts in the build tree"),core/relinker/CMakeLists.txtsetsTMPDIR,TEMPandTMPof every relinker test tocore/relinker/test-tempin the build directory throughENVIRONMENT_MODIFICATION, so the variables set beforectestno longer reach these tests and the advice has no effect. The note now names that directory as the one to exclude.It also lists
windows_bssandwindows_fixed_base, which run the executables they convert and fail the same way as the four already listed when the scanner blocks them.Tested
Windows 11 Pro 23H2, WinLibs GCC 15.2.0 r7, Release,
BUILD_TESTING=ON, a real-time antivirus scanner enabled.optional_plt,empty_tls,windows_address_space,windows_bss,windows_fixed_baseandwindows_iconfail (the converted executable exits 0 with no output, orwindows_address_spacegetsFileNotFoundError: [WinError 2]starting it). The scanner's alert namedbuild\core\relinker\test-temp\anyps5-fixed-base-…\default\output.exe.TMPDIR,TEMPandTMPset to an excluded directory beforectest, as the note said: the same six fail.ctest --show-only=json-v1shows each relinker test'sENVIRONMENT_MODIFICATIONsetting the three variables tobuild/core/relinker/test-temp.build\core\relinker\test-tempexcluded: the six pass.python3 tools/check_conventions.py --base origin/mainpasses. Onlydocs/dev/BUILD.mdchanges.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by harisibrar1 on 2026-10-21T06:00:07Z.
Review: APPROVED
Checked against main:
core/relinker/CMakeLists.txt:827-831creates<build>/core/relinker/test-tempand setsTMPDIR,TEMPandTMPto it withENVIRONMENT_MODIFICATIONon all relinker tests. Values exported beforectestare overridden, so the old "setTEMPandTMP" advice does not apply and naming that directory is correct.windows_bss(CMakeLists.txt:538) andwindows_fixed_base(:438) are registered before that block, so the directory applies to them.test_windows_bss.py:34,66andtest_windows_fixed_base.py:34,53build the output in atempfiledirectory and then run it, so listing them with the four already named is accurate.tools/check_conventions.py --base main --head pr-8619passes.Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.