diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-28 19:20:58 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-28 19:20:58 -0700 |
| commit | ada19c498d6cb52dd8f0de71d42baf845cfadc21 (patch) | |
| tree | 0f1d1d3298d0dc619f9decb43dd381defbeb713d /src/llvm.zig | |
| parent | 412a2f966e18aa792089ac1f41482222d7f2434f (diff) | |
| download | zig-ada19c498d6cb52dd8f0de71d42baf845cfadc21.tar.gz zig-ada19c498d6cb52dd8f0de71d42baf845cfadc21.zip | |
stage2: building DLL import lib files
Diffstat (limited to 'src/llvm.zig')
| -rw-r--r-- | src/llvm.zig | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/llvm.zig b/src/llvm.zig index ceefb62c5d..3aebf46b81 100644 --- a/src/llvm.zig +++ b/src/llvm.zig @@ -73,5 +73,68 @@ pub const OSType = extern enum(c_int) { Emscripten = 35, }; +pub const ArchType = extern enum(c_int) { + UnknownArch = 0, + arm = 1, + armeb = 2, + aarch64 = 3, + aarch64_be = 4, + aarch64_32 = 5, + arc = 6, + avr = 7, + bpfel = 8, + bpfeb = 9, + hexagon = 10, + mips = 11, + mipsel = 12, + mips64 = 13, + mips64el = 14, + msp430 = 15, + ppc = 16, + ppc64 = 17, + ppc64le = 18, + r600 = 19, + amdgcn = 20, + riscv32 = 21, + riscv64 = 22, + sparc = 23, + sparcv9 = 24, + sparcel = 25, + systemz = 26, + tce = 27, + tcele = 28, + thumb = 29, + thumbeb = 30, + x86 = 31, + x86_64 = 32, + xcore = 33, + nvptx = 34, + nvptx64 = 35, + le32 = 36, + le64 = 37, + amdil = 38, + amdil64 = 39, + hsail = 40, + hsail64 = 41, + spir = 42, + spir64 = 43, + kalimba = 44, + shave = 45, + lanai = 46, + wasm32 = 47, + wasm64 = 48, + renderscript32 = 49, + renderscript64 = 50, + ve = 51, +}; + pub const ParseCommandLineOptions = ZigLLVMParseCommandLineOptions; extern fn ZigLLVMParseCommandLineOptions(argc: usize, argv: [*]const [*:0]const u8) void; + +pub const WriteImportLibrary = ZigLLVMWriteImportLibrary; +extern fn ZigLLVMWriteImportLibrary( + def_path: [*:0]const u8, + arch: ArchType, + output_lib_path: [*c]const u8, + kill_at: bool, +) bool; |
