Skip to content

6.2.1 does not build against the static Linux SDK on 6.3 #479

@t089

Description

@t089

On Swift 6.3 the build against the static linux sdk seems to be broken.

Swift version 6.3 (swift-6.3-RELEASE)
Target: x86_64-unknown-linux-gnu
swift build -c release --swift-sdk swift-6.3-RELEASE_static-linux-0.1.0
[1/1] Planning build
Building for production...
/home/tobias/dev/Yams/Sources/Yams/Representer.swift:338:45: error: ambiguous use of 'DBL_DECIMAL_DIG'
336 |         // Since `NumberFormatter` creates a string with insufficient precision for Decode,
337 |         // it uses with `String(format:...)`
338 |         let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
    |                                             `- error: ambiguous use of 'DBL_DECIMAL_DIG'
339 |         // "%*.g" does not use scientific notation if the exponent is less than –4.
340 |         // So fallback to using `NumberFormatter` if string does not uses scientific notation.

_float.DBL_DECIMAL_DIG:1:12: note: found this candidate in module '_float'
1 | public var DBL_DECIMAL_DIG: Int32 { get }
  |            `- note: found this candidate in module '_float'

_Builtin_float.DBL_DECIMAL_DIG:1:12: note: found this candidate in module '_Builtin_float'
1 | public var DBL_DECIMAL_DIG: Int32 { get }
  |            `- note: found this candidate in module '_Builtin_float'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions