Skip to content

Commit 9591fde

Browse files
authored
Merge pull request swiftlang#130 from akyrtzi/build-script-block
[build-script-helper] Add a search path to be able to find `Block.h` from the just built toolchain
2 parents c48cb82 + 9b7065d commit 9591fde

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Utilities/build-script-helper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def get_swiftpm_options(args):
3838
# Dispatch headers
3939
'-Xcxx', '-I', '-Xcxx',
4040
os.path.join(args.toolchain, 'usr', 'lib', 'swift'),
41+
# For <Block.h>
42+
'-Xcxx', '-I', '-Xcxx',
43+
os.path.join(args.toolchain, 'usr', 'lib', 'swift', 'Block'),
4144
]
4245

4346
return swiftpm_args

0 commit comments

Comments
 (0)