build(windows): UploadCacheReadOnlyFlush.cpp fails to compile due to POSIX setenv #22358
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Rony1611 on 2026-11-17T12:47:23Z.
What happens
Building with
-DBUILD_TESTING=ONon Windows fails incore/libs/prx/libSceAgcDriver/tests/execution/UploadCacheReadOnlyFlush.cppwitherror: 'setenv' was not declared in this scope; did you mean 'getenv'?.Title, test or build step
cmake --build build --parallel (target: agc_driver_upload_cache_read_only_flush_tests)
AnyPS5 commit
e369d932fdSystem
Host report
Steps to reproduce
Configure the full Windows build with testing enabled (default environment variables):
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON
Compile the build:
cmake --build build --parallel
Compilation stops in under 1 minute (around step 1331/6711) on
UploadCacheReadOnlyFlush.cppwith'setenv' was not declared in this scope.Log
What was checked
cmake --build buildruns (both parallel and single-threaded).setenv("APS5_NO_LEASE_MIRROR", "1", 1);with_putenv_s("APS5_NO_LEASE_MIRROR", "1");under#ifdef _WIN32incore/libs/prx/libSceAgcDriver/tests/execution/UploadCacheReadOnlyFlush.cppallows the target to compile cleanly on Windows.