Skip to content

Commit 9f15191

Browse files
committed
[SR-11164] Use the toolchain's Block.h
(cherry picked from commit a7fa38f)
1 parent 91b4a3c commit 9f15191

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Utilities/build-script-helper.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ def get_swiftpm_options(args):
2626
if platform.system() != 'Darwin':
2727
swiftpm_args += [
2828
# Dispatch headers
29-
'-Xcxx', '-I', '-Xcxx', os.path.join(args.toolchain, 'usr', 'lib', 'swift'),
29+
'-Xcxx', '-I', '-Xcxx',
30+
os.path.join(args.toolchain, 'usr', 'lib', 'swift'),
31+
# For <Block.h>
32+
'-Xcxx', '-I', '-Xcxx',
33+
os.path.join(args.toolchain, 'usr', 'lib', 'swift', 'Block'),
3034
]
3135

3236
return swiftpm_args
@@ -69,4 +73,4 @@ def add_common_args(parser):
6973
assert False, 'unknown action \'{}\''.format(args.action)
7074

7175
if __name__ == '__main__':
72-
main()
76+
main()

0 commit comments

Comments
 (0)