-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add osxcross patch to building on M1 macbook
- fix #104 Signed-off-by: gythialy <gythialy.koo+github@gmail.com>
- Loading branch information
Showing
2 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/wrapper/target.cpp b/wrapper/target.cpp | ||
index 82bf65c404efed9b88da0fe3e74b5205df0b8534..acc6225ae968086c757e445742e5569ed33f4a47 100644 | ||
--- a/wrapper/target.cpp | ||
+++ b/wrapper/target.cpp | ||
@@ -743,6 +743,10 @@ bool Target::setup() { | ||
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 && | ||
!isGCH()) { | ||
// Use libs from './build_gcc' installation |