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 = " "