summaryrefslogtreecommitdiff
path: root/scripts/Python/prepare_binding_Python.py
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-07-23 20:50:09 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-07-23 20:50:09 +0000
commitf3fbd1c0586ff6ec7895991e6c28f61a503c36a8 (patch)
tree48d008fd3df8c0e73271a4b18474e0aac6dbfe33 /scripts/Python/prepare_binding_Python.py
parent2fc5d2d1dfaf623ce4e24cd8590565902f8c557c (diff)
Notes
Diffstat (limited to 'scripts/Python/prepare_binding_Python.py')
-rw-r--r--scripts/Python/prepare_binding_Python.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/Python/prepare_binding_Python.py b/scripts/Python/prepare_binding_Python.py
index 1996841baf18e..28fc3e5bc7fc9 100644
--- a/scripts/Python/prepare_binding_Python.py
+++ b/scripts/Python/prepare_binding_Python.py
@@ -16,7 +16,7 @@ import re
import shutil
import subprocess
import sys
-
+import platform
class SwigSettings(object):
"""Provides a single object to represent swig files and settings."""
@@ -205,6 +205,8 @@ def do_swig_rebuild(options, dependency_file, config_build_dir, settings):
"-I\"%s\"" % os.path.normcase("./."),
"-D__STDC_LIMIT_MACROS",
"-D__STDC_CONSTANT_MACROS"]
+ if options.target_platform == "Darwin":
+ command.append("-D__APPLE__")
if options.generate_dependency_file:
command.append("-MMD -MF \"%s\"" % temp_dep_file_path)
command.extend([