package-benchmark icon indicating copy to clipboard operation
package-benchmark copied to clipboard

Use package traits for disabling jemalloc

Open parkera opened this issue 10 months ago • 4 comments

It would be nice to use the new Swift 6.1 feature of package traits to disable the jemalloc integration, rather than relying on an environment variable here.

parkera avatar Feb 25 '25 19:02 parkera

@parkera definitely agree, that would be nice - but still supporting older toolchains (expect to drop 5.x when 6.2 rolls out)

hassila avatar Feb 28 '25 16:02 hassila

You should be able to use the version-specific manifest to support this by creating a 5.x Package.swift and then setting swift-tools-version to 6.1. See here for more details.

parkera avatar Mar 03 '25 17:03 parkera

See also https://github.com/ordo-one/package-benchmark/issues/318

hassila avatar Mar 05 '25 08:03 hassila

Thanks!

parkera avatar Mar 05 '25 15:03 parkera