File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,18 @@ pub fn build(b: *std.Build) void {
3737 .root_source_file = b .path ("src/main.zig" ),
3838 .target = target ,
3939 .optimize = optimize ,
40+ .link_libc = true ,
4041 });
4142 const lib = b .addLibrary (.{
4243 .linkage = .dynamic ,
4344 .name = exe_name ,
4445 .root_module = lib_mod ,
46+ // note(jae): 2025-09-19
47+ // Force use_llvm = true, to workaround issue in Zig 0.15.1 where an error occurs with
48+ // - step: compile lib raylib Debug x86_64-linux-android failure
49+ // panic: "TODO unhandled compression scheme"
50+ .use_llvm = if (target .result .abi .isAndroid ()) true else null ,
4551 });
46- lib .linkLibC ();
4752 b .installArtifact (lib );
4853
4954 const raylib_dep = if (android_apk ) | apk |
@@ -61,14 +66,14 @@ pub fn build(b: *std.Build) void {
6166 });
6267
6368 const raylib_artifact = raylib_dep .artifact ("raylib" );
64- lib .linkLibrary (raylib_artifact );
69+ lib .root_module . linkLibrary (raylib_artifact );
6570 const raylib_mod = raylib_dep .module ("raylib" );
6671 lib .root_module .addImport ("raylib" , raylib_mod );
6772
6873 if (android_apk ) | apk | {
6974 const android_dep = b .dependency ("android" , .{
70- .optimize = optimize ,
7175 .target = target ,
76+ .optimize = optimize ,
7277 });
7378 lib .root_module .addImport ("android" , android_dep .module ("android" ));
7479 lib .root_module .linkSystemLibrary ("android" , .{});
You can’t perform that action at this time.
0 commit comments