diff gui_ze/gui_ze.bzl @ 168:f3084bca7317

[Misc] Fixed all errors and all tests should pass now.
author MrJuneJune <me@mrjunejune.com>
date Mon, 19 Jan 2026 16:29:02 -0800
parents cd35e600ae34
children 71ad34a8bc9a 8c74204fd362
line wrap: on
line diff
--- a/gui_ze/gui_ze.bzl	Mon Jan 19 16:28:45 2026 -0800
+++ b/gui_ze/gui_ze.bzl	Mon Jan 19 16:29:02 2026 -0800
@@ -24,8 +24,7 @@
     cmd_parts = [
         setup_cmd,
         "$CLANG",
-        "--target=wasm32",
-        "-nostdlib",
+        "--target=wasm32-unknown-unknown",
         "-O2",
         "-Wl,--no-entry",
         "-Wl,--export-dynamic",
@@ -444,12 +443,15 @@
         {name}_signed_app: The signed .app bundle
         {name}_dmg: The final DMG file
     """
+    macos_constraint = ["@platforms//os:macos"]
+
     # 1. Build the .app bundle
     _macos_app(
         name = name + "_app",
         binary = binary,
         app_name = name,
         bundle_id = bundle_id,
+        target_compatible_with = macos_constraint,
     )
 
     # 2. Sign the .app
@@ -457,6 +459,7 @@
         name = name + "_signed_app",
         app = ":" + name + "_app",
         app_name = name,
+        target_compatible_with = macos_constraint,
     )
 
     # 3. Create the DMG
@@ -476,4 +479,5 @@
         """.format(name = name),
         local = 1,  # Disable sandboxing for hdiutil
         tags = ["no-sandbox"],
+        target_compatible_with = macos_constraint,
     )