Thunk uses VC-LTL5 and YY-Thunks to build programs that support even Windows XP. So, how does it work?
- Add VC-LTL to the library search path
- Use YY-Thunks to remedy API that old platform that does not exist
Note: Thunk do not guarantee the compiled program work or work accurately on old platform. USE AT YOUR OWN RISK!
In order to distinguish the program build by Thunk, Thunk builds the release in ./target/*_build
.
Download VC-LTL5 and YY-Thunks Binary, unzip them and add environment variable:
Binary | Environment Variable |
---|---|
VC-LTL-5.0.8-Beta2-Binary.7z | VC_LTL |
YY-Thunks-1.0.8-Beta4-Binary.zip | YY_THUNKS |
Then add Thunk to run path.
You can just install with scoop:
scoop bucket add felixmaker 'https://github.com/felixmaker/scoop-felixmaker'
scoop install felixmaker/thunk
cargo new build_for_xp
cd build_for_xp
thunk --os xp --arch x86 -- --release
cargo new build_for_xp
cd build_for_xp
thunk --os xp --arch x86 --lib -- --release
Use the following command to show help:
thunk.exe --help
- Windows XP x86
- Windows XP x64
- Windows Vista x86
- Windows Vista x64
- Only VC-LTL
- Scoop bucket