Skip to content

Commit

Permalink
Merge commit 'refs/pull/314/head' of github.com:tpoechtrager/osxcross
Browse files Browse the repository at this point in the history
fix(wrapper): inject libc++ when sdk version >= 11.1 tpoechtrager#314
  • Loading branch information
Nick Ma committed May 14, 2022
2 parents 6105427 + 2a6f7f5 commit 41a39cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wrapper/target.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,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 &&
Expand Down

0 comments on commit 41a39cb

Please sign in to comment.