summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2020-08-28 15:14:39 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-03 17:11:08 +0000
commitc4aa65bbd510369498ef7202596775c7824c87ce (patch)
treeb859620f422440ae1baa1a75b1c3ae87c7a720af /SConstruct
parent3df9c61b7747058cd84edd7a875b1524db57dd1d (diff)
downloadmongo-c4aa65bbd510369498ef7202596775c7824c87ce.tar.gz
SERVER-50689 Support ABI driven linking on macOS with tapi
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 8 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index c29b0ac94c5..b2e700ce664 100644
--- a/SConstruct
+++ b/SConstruct
@@ -933,6 +933,9 @@ env_vars.Add('STRIP',
help='Path to the strip utility (non-darwin platforms probably use OBJCOPY for this)',
)
+env_vars.Add('TAPI',
+ help="Configures the path to the 'tapi' (an Xcode) utility")
+
env_vars.Add('TARGET_ARCH',
help='Sets the architecture to build for',
converter=variable_arch_converter,
@@ -1724,6 +1727,11 @@ if link_model.startswith("dynamic"):
if abilink.exists(env):
abilink(env)
+ if env.TargetOSIs('darwin') and env.get('TAPI'):
+ tapilink = Tool('tapilink')
+ if tapilink.exists(env):
+ tapilink(env)
+
if env['_LIBDEPS'] == '$_LIBDEPS_LIBS':
# The following platforms probably aren't using the binutils
# toolchain, or may be using it for the archiver but not the