Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Examples/Embedded to use the new Embedded trait
  • Loading branch information
kateinoigakukun committed Mar 27, 2025
commit 64fb506b50c6ac1e35118eb01b8e471ed63a6208
4 changes: 2 additions & 2 deletions Examples/Embedded/Package.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// swift-tools-version:6.0
// swift-tools-version:6.1

import PackageDescription

let package = Package(
name: "Embedded",
dependencies: [
.package(name: "JavaScriptKit", path: "../../"),
.package(name: "JavaScriptKit", path: "../../", traits: ["Embedded"]),
.package(url: "https://github.com/swiftwasm/swift-dlmalloc", branch: "0.1.0"),
],
targets: [
Expand Down
3 changes: 1 addition & 2 deletions Examples/Embedded/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
package_dir="$(cd "$(dirname "$0")" && pwd)"
JAVASCRIPTKIT_EXPERIMENTAL_EMBEDDED_WASM=true \
swift package --package-path "$package_dir" \
swift package --package-path "$package_dir" \
-c release --triple wasm32-unknown-none-wasm js