Skip to content

Commit 35823ec

Browse files
committed
Make logging in wasmkit.py resilient to file renaming
1 parent e47f650 commit 35823ec

File tree

1 file changed

+4
-1
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+4
-1
lines changed

utils/swift_build_support/swift_build_support/products/wasmkit.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ def run_swift_build(host_target, product, swiftpm_package_product_name, set_inst
7676
swift_build = os.path.join(product.install_toolchain_path(host_target), "bin", "swift-build")
7777

7878
if not os.path.exists(swift_build) or product.args.build_runtime_with_host_compiler:
79-
print("WARNING: build-script's `wasmkit.py` is running local development code path, don't use for deployment!")
79+
print(
80+
f"WARNING: build-script's {os.path.basename(__file__)} is running local development code path, "
81+
"don't use these build artifacts for deployment!"
82+
)
8083
swift_build = product.toolchain.swift_build
8184

8285
if host_target.startswith('macos'):

0 commit comments

Comments
 (0)