From c9f574c27b6226605b255fbeae475c26bcd034a9 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 20 May 2020 22:37:58 -0700 Subject: [PATCH] Fix mac build. --- AMBuildScript | 1 + tools/checkout-deps.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AMBuildScript b/AMBuildScript index 59ca41b7..0c1f5d0b 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -398,6 +398,7 @@ class SMConfig(object): cxx.linkflags += [ '-mmacosx-version-min=10.7', '-stdlib=libc++', + '-lc++', ] cxx.cxxflags += ['-stdlib=libc++'] diff --git a/tools/checkout-deps.sh b/tools/checkout-deps.sh index e1d93451..f0726046 100755 --- a/tools/checkout-deps.sh +++ b/tools/checkout-deps.sh @@ -127,7 +127,7 @@ do checkout done -`python -c "import ambuild2"` +`python -c "import ambuild2"` || `python3 -c "import ambuild2"` if [ $? -eq 1 ]; then repo="https://github.com/alliedmodders/ambuild" origin=