30
30
#
31
31
# Values will be added to LDFLAGS.
32
32
#
33
+ # apple_sdk_platform
34
+ # Name of the Apple SDK platform to use when building.
35
+ #
36
+ # Value is fed into `xcrun --sdk` to locate the Apple SDK.
37
+ #
38
+ # Required when targeting Apple.
39
+ #
33
40
# openssl_target
34
41
# Name of OpenSSL platform build target.
35
42
@@ -45,6 +52,7 @@ aarch64-apple-darwin:
45
52
needs_toolchain : true
46
53
host_cc : clang
47
54
target_cc : clang
55
+ apple_sdk_platform : macosx
48
56
target_cflags :
49
57
- ' -arch'
50
58
- ' arm64'
@@ -71,6 +79,7 @@ aarch64-apple-ios:
71
79
host_platforms :
72
80
- darwin
73
81
needs_toolchain : true
82
+ apple_sdk_platform : iphoneos
74
83
host_cc : clang
75
84
target_cc : clang
76
85
target_cflags :
@@ -121,6 +130,7 @@ arm64-apple-tvos:
121
130
host_platforms :
122
131
- darwin
123
132
needs_toolchain : true
133
+ apple_sdk_platform : appletvos
124
134
host_cc : clang
125
135
target_cc : clang
126
136
target_cflags :
@@ -316,6 +326,7 @@ thumb7k-apple-watchos:
316
326
host_platforms :
317
327
- darwin
318
328
needs_toolchain : true
329
+ apple_sdk_platform : watchos
319
330
host_cc : clang
320
331
target_cc : clang
321
332
target_cflags :
@@ -340,6 +351,7 @@ thumb7k-apple-watchos:
340
351
x86_64-apple-darwin :
341
352
host_platforms :
342
353
- darwin
354
+ apple_sdk_platform : macosx
343
355
host_cc : clang
344
356
target_cc : clang
345
357
target_cflags :
@@ -368,6 +380,7 @@ x86_64-apple-ios:
368
380
host_platforms :
369
381
- darwin
370
382
needs_toolchain : true
383
+ apple_sdk_platform : iphonesimulator
371
384
host_cc : clang
372
385
target_cc : clang
373
386
target_cflags :
@@ -390,6 +403,7 @@ x86_64-apple-tvos:
390
403
host_platforms :
391
404
- darwin
392
405
needs_toolchain : true
406
+ apple_sdk_platform : appletvsimulator
393
407
host_cc : clang
394
408
target_cc : clang
395
409
target_cflags :
@@ -410,6 +424,7 @@ x86_64-apple-watchos:
410
424
host_platforms :
411
425
- darwin
412
426
needs_toolchain : true
427
+ apple_sdk_platform : watchsimulator
413
428
host_cc : clang
414
429
target_cc : clang
415
430
target_cflags :
0 commit comments