summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-01-20 23:00:23 +0100
committerCarl Hetherington <cth@carlh.net>2020-03-28 19:47:28 +0100
commit5603b4cae076f286ecf52846dfd317a94a88e559 (patch)
tree46cf9dc9f359029926f4e1806b41c3a64fbaea25 /cscript
parent9e6d6f9dfe3472dc24f7977d3e24ca923bd95f55 (diff)
Assorted OS X build fixes.
Diffstat (limited to 'cscript')
-rw-r--r--cscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/cscript b/cscript
index ff6320443..0a0a73c88 100644
--- a/cscript
+++ b/cscript
@@ -203,7 +203,7 @@ def build_dist(target):
# - Lots of Linux distros don't have a new enough boost (1.64 or above)
# - On Centos 6 we can't build lwext4 because it needs a new CMake which Centos 6's g++ is not new enough to build.
# - On Centos 7 there is a build error in lwext4 related to __unused
- return target.platform == 'windows' or (target.platform == 'linux' and target.distro == 'ubuntu' and target.version in ['18.04', '18.10', '19.04'])
+ return target.platform == 'windows' or target.platform == 'osx' or (target.platform == 'linux' and target.distro == 'ubuntu' and target.version in ['18.04', '18.10', '19.04'])
def packages(name, packages, f):
s = '%s: ' % name
@@ -401,6 +401,8 @@ def configure_options(target, options):
# I worry that this will cause ABI problems but I don't have
# a better solution.
opt += ' --force-cpp11'
+ elif target.platform == 'osx' and target.bits == 64:
+ opt += ' --force-cpp11'
if not options['gui']:
opt += ' --disable-gui'