From a731a7fdadeee3f3f9cbbc0b7b233dd476ed0e6b Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Tue, 12 May 2026 15:33:22 -0700 Subject: [PATCH] =?UTF-8?q?[BasicContainers]=20Don=E2=80=99t=20define=20LL?= =?UTF-8?q?DB=20formatter=20symbol=20on=20Wasm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While we’re here, follow our explicit access control rule when defining the variable. --- Sources/BasicContainers/RigidArray/RigidArray+Formatter.swift | 4 ++-- Utils/Debugger/formatter_bytecode.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/BasicContainers/RigidArray/RigidArray+Formatter.swift b/Sources/BasicContainers/RigidArray/RigidArray+Formatter.swift index 5ae545e1..db7f18c0 100644 --- a/Sources/BasicContainers/RigidArray/RigidArray+Formatter.swift +++ b/Sources/BasicContainers/RigidArray/RigidArray+Formatter.swift @@ -13,14 +13,14 @@ // Generated with: ./Utils/Debugger/generate_formatters.sh -#if swift(>=6.3) +#if compiler(>=6.3) && !objectFormat(Wasm) #if objectFormat(MachO) @section("__DATA_CONST,__lldbformatters") #else @section(".lldbformatters") #endif @used -let `^(BasicContainers|Collections(Internal)?)[.]RigidArray<.+>$ formatter`: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) = ( +@usableFromInline internal let `^(BasicContainers|Collections(Internal)?)[.]RigidArray<.+>$ formatter`: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8) = ( // version 0x01, // remaining record size diff --git a/Utils/Debugger/formatter_bytecode.py b/Utils/Debugger/formatter_bytecode.py index f1234edf..1ca38198 100644 --- a/Utils/Debugger/formatter_bytecode.py +++ b/Utils/Debugger/formatter_bytecode.py @@ -340,7 +340,7 @@ class BytecodeSection: print( textwrap.dedent( """\ - #if swift(>=6.3) + #if compiler(>=6.3) && !objectFormat(Wasm) #if objectFormat(MachO) @section("__DATA_CONST,__lldbformatters") #else @@ -351,7 +351,7 @@ class BytecodeSection: file=output, ) print( - f"let `{self.type_name} formatter`: {builder.type_decl} = (", + f"@usableFromInline internal let `{self.type_name} formatter`: {builder.type_decl} = (", file=output, ) indent = " "