summaryrefslogtreecommitdiff
path: root/generate-darwin-source-and-headers.py
diff options
context:
space:
mode:
authorPanayotis <panayotis@panayotis.com>2019-11-24 18:25:13 +0200
committerAnthony Green <green@moxielogic.com>2019-11-24 11:25:13 -0500
commitfb914c366fabb29ac373050ca0bfa4d9c1fef149 (patch)
tree97d1e2213b33f3a60ade565ec06192cfa6f94db8 /generate-darwin-source-and-headers.py
parent5dcb741f1544c5e18c9dbf96aeb8b61cc556a616 (diff)
downloadlibffi-fb914c366fabb29ac373050ca0bfa4d9c1fef149.tar.gz
disable obsolete 32-bit targets in macOS (#511)
Diffstat (limited to 'generate-darwin-source-and-headers.py')
-rwxr-xr-xgenerate-darwin-source-and-headers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/generate-darwin-source-and-headers.py b/generate-darwin-source-and-headers.py
index f7fc414..3d840b9 100755
--- a/generate-darwin-source-and-headers.py
+++ b/generate-darwin-source-and-headers.py
@@ -143,7 +143,7 @@ def build_target(platform, platform_headers):
mkdir_p(build_dir)
env = dict(CC=xcrun_cmd('clang'),
LD=xcrun_cmd('ld'),
- CFLAGS='%s' % (platform.version_min))
+ CFLAGS='%s -fembed-bitcode' % (platform.version_min))
working_dir = os.getcwd()
try:
os.chdir(build_dir)
@@ -173,7 +173,7 @@ def generate_source_and_headers(generate_osx=True, generate_ios=True):
copy_src_platform_files(device_platform)
copy_src_platform_files(device64_platform)
if generate_osx:
- copy_src_platform_files(desktop32_platform)
+# copy_src_platform_files(desktop32_platform)
copy_src_platform_files(desktop64_platform)
platform_headers = collections.defaultdict(set)
@@ -184,7 +184,7 @@ def generate_source_and_headers(generate_osx=True, generate_ios=True):
build_target(device_platform, platform_headers)
build_target(device64_platform, platform_headers)
if generate_osx:
- build_target(desktop32_platform, platform_headers)
+# build_target(desktop32_platform, platform_headers)
build_target(desktop64_platform, platform_headers)
mkdir_p('darwin_common/include')