diff options
| author | pravic <[email protected]> | 2016-04-15 19:18:17 +0300 |
|---|---|---|
| committer | pravic <[email protected]> | 2016-04-15 19:18:17 +0300 |
| commit | 6d0ffc8e2754363d88bbc30f09ee81d8bd7ab819 (patch) | |
| tree | b9ab8f5f2ea36a872271e990df1a0e75960ae840 | |
| parent | use WaybackMachine for original website (diff) | |
| download | winapi-kmd-rs-6d0ffc8e2754363d88bbc30f09ee81d8bd7ab819.tar.xz winapi-kmd-rs-6d0ffc8e2754363d88bbc30f09ee81d8bd7ab819.zip | |
add note about target compilation
| -rw-r--r-- | README.md | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -36,6 +36,23 @@ cd km\examples\01.minimal\ cargo build --release ``` +By default, it compiles to x86 mode. +If you need x64, either change `kmd-env-rs/.cargo/config` as following: + +``` +[build] +target = "x86_64-sys-windows-msvc" +... +``` + +or use [RUST_TARGET_PATH](https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md): + +``` +set RUST_TARGET_PATH=C:/path/to/kmd-env-rs/.cargo` +cargo build --release --target i686-sys-windows-msvc +cargo build --release --target x86_64-sys-windows-msvc +``` + If linker fails with error "*cannot open input file 'ntoskrnl.lib'*", open `kmd-env-rs/.cargo/config` file and replace `../../../` with the full path to the "*kmd-env-rs*" directory. |