We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfd27a9 commit c556662Copy full SHA for c556662
Package.swift
@@ -182,8 +182,8 @@ if let cStandardLibraryModuleMap {
182
let platformCxxSettings: [CXXSetting] = [
183
// Use libstdc++ (what PyTorch actually uses in Docker)
184
.unsafeFlags(["-stdlib=libstdc++"]),
185
- // Use C++11 ABI to match PyTorch's std::__cxx11 symbols
186
- .define("_GLIBCXX_USE_CXX11_ABI", to: "1")
+ // Use old ABI (ABI=0) to match Docker PyTorch build
+ .define("_GLIBCXX_USE_CXX11_ABI", to: "0")
187
]
188
#else
189
let platformCxxSettings: [CXXSetting] = []
0 commit comments