diff options
| -rw-r--r-- | .cargo/config | 13 | ||||
| -rw-r--r-- | .cargo/i686-sys-windows-msvc.json | 52 | ||||
| -rw-r--r-- | .cargo/x86_64-sys-windows-msvc.json | 51 |
3 files changed, 116 insertions, 0 deletions
diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..706c539 --- /dev/null +++ b/.cargo/config @@ -0,0 +1,13 @@ +[build] +target = "i686-sys-windows-msvc" +rustflags = ["--cfg", "disable_float", "-C", "soft-float"] + +[target.i686-sys-windows-msvc.ntoskrnl] +rustc-link-search = [ "f:/DDK/7600/lib/win7/i386" ] +rustc-link-lib = [ "ntoskrnl", "hal" ] +root = "ntoskrnl" + +[target.x86_64-sys-windows-msvc.ntoskrnl] +rustc-link-search = [ "f:/DDK/7600/lib/win7/amd64" ] +rustc-link-lib = [ "ntoskrnl", "hal" ] +root = "ntoskrnl" diff --git a/.cargo/i686-sys-windows-msvc.json b/.cargo/i686-sys-windows-msvc.json new file mode 100644 index 0000000..68d5039 --- /dev/null +++ b/.cargo/i686-sys-windows-msvc.json @@ -0,0 +1,52 @@ +{ + "_": "Inspired by https://github.com/ryanbreen/breenix/blob/master/x86_64-unknown-none-gnu.json", + "_note": "`is_like_mcvc` works since #32823, nightly 2016-04-12", + + "llvm-target": "i686-pc-windows-msvc", + "target-endian": "little", + "target-pointer-width": "32", + + "oldcpu": "pentium4", + "cpu": "corei7-avx", + "features": "-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-3dnow,-3dnowa,-avx,-avx2", + + "arch": "x86", + "vendor": "pc", + "os": "windows", + "env": "msvc", + + "executables": true, + "dynamic-linking": true, + + "is-like-windows": true, + "is-like-msvc": true, + + "dll-prefix": "", + "dll-suffix": ".sys", + "exe-prefix": "", + "exe-suffix": ".exe", + "staticlib-prefix": "lib", + "staticlib-suffix": ".lib", + + "no-default-libraries": true, + "no-compiler-rt": true, + "has-rpath": false, + + "function-sections": true, + "has-elf-tls": false, + "disable-redzone": true, + "custom-unwind-resume": false, + "eliminate-frame-pointer": false, + "position-independent-executables": false, + + "code-model": "kernel", + "relocation-model": "dynamic-no-pic", + + "pre-link-args": ["/NOLOGO", "/NODEFAULTLIB", "/SUBSYSTEM:NATIVE", "/DRIVER", "/RELEASE", "/NXCOMPAT", "/DYNAMICBASE", + "/INCREMENTAL:NO", "/MANIFEST:NO", "/FIXED:No"], + + "post-link-args": ["/OPT:REF,ICF", "ntoskrnl.lib", "hal.lib", + "/noimplib", "/ENTRY:DriverEntry", "/DEF:exports.def", "/MERGE:.edata=.rdata", "/MERGE:.rustc=.data"], + + "_end" : false +} diff --git a/.cargo/x86_64-sys-windows-msvc.json b/.cargo/x86_64-sys-windows-msvc.json new file mode 100644 index 0000000..3d1619a --- /dev/null +++ b/.cargo/x86_64-sys-windows-msvc.json @@ -0,0 +1,51 @@ +{ + "_": "Inspired by https://github.com/ryanbreen/breenix/blob/master/x86_64-unknown-none-gnu.json", + "_note": "`is_like_mcvc` works since #32823, nightly 2016-04-12", + + "llvm-target": "x86_64-pc-windows-msvc", + "target-endian": "little", + "target-pointer-width": "64", + + "cpu": "x86-64", + "features": "-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-3dnow,-3dnowa,-avx,-avx2", + + "arch": "x86_64", + "vendor": "pc", + "os": "windows", + "env": "msvc", + + "executables": true, + "dynamic-linking": true, + + "is-like-windows": true, + "is-like-msvc": true, + + "dll-prefix": "", + "dll-suffix": ".sys", + "exe-prefix": "", + "exe-suffix": ".exe", + "staticlib-prefix": "lib", + "staticlib-suffix": ".lib", + + "no-default-libraries": true, + "no-compiler-rt": true, + "has-rpath": false, + + "function-sections": true, + "has-elf-tls": false, + "disable-redzone": true, + "custom-unwind-resume": false, + "eliminate-frame-pointer": false, + "position-independent-executables": false, + + "code-model": "kernel", + "relocation-model": "dynamic-no-pic", + + "pre-link-args": ["/NOLOGO", "/NODEFAULTLIB", "/SUBSYSTEM:NATIVE", "/DRIVER", "/RELEASE", "/NXCOMPAT", "/DYNAMICBASE", + "/INCREMENTAL:NO", "/MANIFEST:NO", "/FIXED:No"], + + "post-link-args": ["/OPT:REF,ICF", "ntoskrnl.lib", "hal.lib", "/LIBPATH:f:/DDK/7600/lib/win7/amd64", + "/noimplib", "/ENTRY:DriverEntry", "/DEF:exports.def", "/MERGE:.edata=.rdata", "/MERGE:.rustc=.data"], + + "_end" : false +} |