aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorpravic <[email protected]>2016-04-15 19:18:17 +0300
committerpravic <[email protected]>2016-04-15 19:18:17 +0300
commit6d0ffc8e2754363d88bbc30f09ee81d8bd7ab819 (patch)
treeb9ab8f5f2ea36a872271e990df1a0e75960ae840 /README.md
parentuse WaybackMachine for original website (diff)
downloadwinapi-kmd-rs-6d0ffc8e2754363d88bbc30f09ee81d8bd7ab819.tar.xz
winapi-kmd-rs-6d0ffc8e2754363d88bbc30f09ee81d8bd7ab819.zip
add note about target compilation
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4b31cb7..94347f9 100644
--- a/README.md
+++ b/README.md
@@ -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.