This commit is contained in:
Artur Troian 2024-08-14 16:40:24 -04:00 committed by GitHub
commit 9d145ff9c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -747,6 +747,10 @@ bool Target::setup() {
(stdlib == StdLib::libstdcxx && usegcclibs)) {
fargs.push_back("-nostdinc++");
fargs.push_back("-Qunused-arguments");
if ((SDKOSNum >= OSVersion(11, 1)) && (stdlib == StdLib::libcxx)) {
fargs.push_back("-lc++");
}
}
if (stdlib == StdLib::libstdcxx && usegcclibs && targetarch.size() < 2 &&