jpsim / Yams

A Sweet and Swifty YAML parser.
https://jpsim.com/Yams
MIT License
1.11k stars 141 forks source link

Add support for Musl (#429) #430

Open arasan01 opened 3 weeks ago

arasan01 commented 3 weeks ago

Summary

Change import to allow a choice between Glibc and Musl.

related Issue: https://github.com/jpsim/Yams/issues/429 replacing musl pow: https://git.musl-libc.org/cgit/musl/tree/include/math.h

Check

$ xcrun --toolchain org.swift.600202409171a swift --version
Apple Swift version 6.0.2-dev (LLVM 43d73cb0cc589f7, Swift aaa632cea622394)
Target: arm64-apple-macosx14.0

$ xcrun --toolchain org.swift.600202409171a swift build --swift-sdk x86_64-swift-linux-musl -c release
Building for production...
[3/3] Compiling Yams Constructor.swift
Build complete! (7.32s)

$ xcrun --toolchain org.swift.600202409171a swift build -c release
Building for production...
[9/9] Compiling Yams Constructor.swift
Build complete! (16.99s)