stdlib/benchmark: add canImport(Musl) where needed (#67120)

This allows compiling stdlib and benchmarks when targeting musl instead of Glibc.
This commit is contained in:
Max Desiatov
2023-07-05 19:55:08 +01:00
committed by GitHub
parent 39a837c1b5
commit 21a2b78801
18 changed files with 47 additions and 8 deletions

View File

@@ -11,8 +11,10 @@
//===----------------------------------------------------------------------===//
import TestsUtils
#if os(Linux)
#if canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif os(Windows)
import MSVCRT
#else

View File

@@ -2,8 +2,10 @@
//
// Originally written by @owensd. Used with his permission.
#if os(Linux)
#if canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif os(Windows)
import MSVCRT
#else

View File

@@ -11,8 +11,10 @@
//===----------------------------------------------------------------------===//
import TestsUtils
#if os(Linux)
#if canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif os(Windows)
import MSVCRT
#else

View File

@@ -11,8 +11,10 @@
//===----------------------------------------------------------------------===//
import TestsUtils
#if os(Linux)
#if canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif os(Windows)
import MSVCRT
#else

View File

@@ -11,8 +11,10 @@
//===----------------------------------------------------------------------===//
import TestsUtils
#if os(Linux)
#if canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif os(Windows)
import MSVCRT
#else

View File

@@ -10,8 +10,10 @@
//
//===----------------------------------------------------------------------===//
#if os(Linux)
#if canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif os(Windows)
import MSVCRT
#else

View File

@@ -10,8 +10,10 @@
//
//===----------------------------------------------------------------------===//
#if os(Linux)
#if canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#elseif os(Windows)
import MSVCRT
#else