diff options
| author | 2022-08-21 12:00:29 +0200 | |
|---|---|---|
| committer | 2022-08-21 12:15:21 +0200 | |
| commit | f50958ff5c0fec2560b7c46a91ba28aa0e5b5aae (patch) | |
| tree | 04e72c453b4b07e25f2510017e6cffb26418f6ef | |
| parent | readme: clearly document which Zig version is supported (diff) | |
| download | zig-sqlite-f50958ff5c0fec2560b7c46a91ba28aa0e5b5aae.tar.gz zig-sqlite-f50958ff5c0fec2560b7c46a91ba28aa0e5b5aae.tar.xz zig-sqlite-f50958ff5c0fec2560b7c46a91ba28aa0e5b5aae.zip | |
build: force the use of stage1
| -rw-r--r-- | build.zig | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -206,6 +206,7 @@ pub fn build(b: *std.build.Builder) !void { | |||
| 206 | const cross_target = getTarget(test_target.target, bundled); | 206 | const cross_target = getTarget(test_target.target, bundled); |
| 207 | 207 | ||
| 208 | const tests = b.addTest("sqlite.zig"); | 208 | const tests = b.addTest("sqlite.zig"); |
| 209 | tests.use_stage1 = true; | ||
| 209 | 210 | ||
| 210 | if (bundled) { | 211 | if (bundled) { |
| 211 | const lib = b.addStaticLibrary("sqlite", null); | 212 | const lib = b.addStaticLibrary("sqlite", null); |
| @@ -259,6 +260,7 @@ pub fn build(b: *std.build.Builder) !void { | |||
| 259 | fuzz_lib.linkLibrary(lib); | 260 | fuzz_lib.linkLibrary(lib); |
| 260 | fuzz_lib.want_lto = true; | 261 | fuzz_lib.want_lto = true; |
| 261 | fuzz_lib.bundle_compiler_rt = true; | 262 | fuzz_lib.bundle_compiler_rt = true; |
| 263 | fuzz_lib.use_stage1 = true; | ||
| 262 | fuzz_lib.addPackagePath("sqlite", "sqlite.zig"); | 264 | fuzz_lib.addPackagePath("sqlite", "sqlite.zig"); |
| 263 | 265 | ||
| 264 | // Setup the output name | 266 | // Setup the output name |
| @@ -281,6 +283,7 @@ pub fn build(b: *std.build.Builder) !void { | |||
| 281 | 283 | ||
| 282 | // Compile a companion exe for debugging crashes | 284 | // Compile a companion exe for debugging crashes |
| 283 | const fuzz_debug_exe = b.addExecutable("fuzz-debug", "fuzz/main.zig"); | 285 | const fuzz_debug_exe = b.addExecutable("fuzz-debug", "fuzz/main.zig"); |
| 286 | fuzz_debug_exe.use_stage1 = true; | ||
| 284 | fuzz_debug_exe.addIncludeDir("c"); | 287 | fuzz_debug_exe.addIncludeDir("c"); |
| 285 | fuzz_debug_exe.setBuildMode(mode); | 288 | fuzz_debug_exe.setBuildMode(mode); |
| 286 | fuzz_debug_exe.setTarget(getTarget(target, true)); | 289 | fuzz_debug_exe.setTarget(getTarget(target, true)); |