Skip to content

Commit 3145839

Browse files
authored
Merge pull request #251 from ahoppen/ahoppen/no-build-script-environment
Don’t set `SWIFT_BUILD_SCRIPT_ENVIRONMENT` when building swift-format
2 parents d330b3a + 94ede2d commit 3145839

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

build-script-helper.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ def run(args):
7474
if not args.no_local_deps:
7575
env['SWIFTCI_USE_LOCAL_DEPS'] = "1"
7676
env['SWIFT_STRESS_TESTER_SOURCEKIT_SEARCHPATH'] = args.sourcekitd_dir
77-
env['SWIFT_SYNTAX_PARSER_LIB_SEARCH_PATH'] = os.path.join(args.toolchain, 'lib', 'swift', 'macosx')
78-
77+
7978
if args.update:
8079
print("** Updating dependencies of %s **" % package_name)
8180
handle_errors(update_swiftpm_dependencies,
@@ -192,10 +191,6 @@ def invoke_swift_single_product(package_dir, swift_exec, action, product, build_
192191
else:
193192
args.extend(['--product', product])
194193

195-
# Tell SwiftSyntax that we are building in a build-script environment so that
196-
# it does not need to rebuilt if it has already been built before.
197-
env['SWIFT_BUILD_SCRIPT_ENVIRONMENT'] = '1'
198-
199194
check_call(args, env=env, verbose=verbose)
200195

201196

0 commit comments

Comments
 (0)