add release build
This commit is contained in:
parent
9af7b8abd8
commit
50d9cfe16e
@ -30,6 +30,6 @@ Custom firmware USB device: 1CCF:2333
|
|||||||
|
|
||||||
```
|
```
|
||||||
$ git clone ...
|
$ git clone ...
|
||||||
$ zig build
|
$ zig build -Drelease-fast=true
|
||||||
$ ls zig-out/lib/chuniio_tasoller.dll
|
$ ls zig-out/lib/chuniio_tasoller.dll
|
||||||
```
|
```
|
||||||
|
@ -3,10 +3,13 @@ const CrossTarget = std.zig.CrossTarget;
|
|||||||
|
|
||||||
pub fn build(b: *std.build.Builder) void {
|
pub fn build(b: *std.build.Builder) void {
|
||||||
const target = CrossTarget{ .os_tag = .windows, .cpu_arch = .i386, .abi = .msvc };
|
const target = CrossTarget{ .os_tag = .windows, .cpu_arch = .i386, .abi = .msvc };
|
||||||
|
|
||||||
const lib = b.addSharedLibrary("chuniio_tasoller", "src/main.zig", .unversioned);
|
const lib = b.addSharedLibrary("chuniio_tasoller", "src/main.zig", .unversioned);
|
||||||
|
lib.setBuildMode(b.standardReleaseOptions());
|
||||||
lib.setTarget(target);
|
lib.setTarget(target);
|
||||||
lib.install();
|
lib.install();
|
||||||
const exe = b.addExecutable("tasoller_test", "src/main.zig");
|
|
||||||
exe.setTarget(target);
|
// const exe = b.addExecutable("tasoller_test", "src/main.zig");
|
||||||
exe.install();
|
// exe.setTarget(target);
|
||||||
|
// exe.install();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user