This commit is contained in:
agra
2026-05-23 15:41:12 +03:00
parent 4c6c29b299
commit 49b39ba07a
4 changed files with 153 additions and 12 deletions

View File

@@ -65,6 +65,12 @@ pub const TargetConfig = struct {
/// Path to an entitlements plist. When null and `provisioning_profile`
/// is set, the entitlements are auto-extracted from the profile.
entitlements_path: ?[]const u8 = null,
/// True when emitting an ahead-of-time binary (`sx build`), false for
/// in-process JIT (`sx run`). Used by emit_llvm to gate code that only
/// makes sense for a standalone executable — e.g. the macOS bundle
/// `chdir` shouldn't run in JIT mode because it would mutate the host
/// sx process's CWD.
is_aot: bool = false,
pub const OptLevel = enum {
none,