summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorColugo <colugomusic@gmail.com>2020-12-03 20:30:59 +0000
committerColugo <colugomusic@gmail.com>2020-12-03 20:30:59 +0000
commit78547869ee14ef79e3b0161291e582c0f1ae8688 (patch)
treeffe6e42a5b050c2540d1320cc51648a62faf51eb /SConstruct
parentc9a740be34438ce999402b7b76304a38daaaa811 (diff)
downloadredot-cpp-78547869ee14ef79e3b0161291e582c0f1ae8688.tar.gz
Add macos_deployment_target SConstruct option.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 9 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index d22c9a3..4659936 100644
--- a/SConstruct
+++ b/SConstruct
@@ -134,6 +134,11 @@ opts.Add(EnumVariable(
'armv7',
['armv7','arm64v8','x86','x86_64']
))
+opts.Add(
+ 'macos_deployment_target',
+ 'macOS deployment target',
+ 'default'
+)
opts.Add(EnumVariable(
'ios_arch',
'Target iOS architecture',
@@ -204,6 +209,10 @@ elif env['platform'] == 'osx':
)
env.Append(CCFLAGS=['-std=c++14', '-arch', 'x86_64'])
+
+ if env['macos_deployment_target'] != 'default':
+ env.Append(CCFLAGS=['-mmacosx-version-min=' + env['macos_deployment_target']])
+
env.Append(LINKFLAGS=[
'-arch',
'x86_64',