Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add --configuration option to swift package js command #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
kateinoigakukun merged 1 commit into main from yt/configuration-option
Mar 24, 2025

Conversation

@kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Mar 24, 2025

If we pass -c release as swift package option, command plugins will also be built in release configuration, which is not what we want.

Copy link

github-actions bot commented Mar 24, 2025
edited
Loading

Time Change: +45ms (0%)

Total Time: 9,557ms

Test name Duration Change
Serialization/JavaScript function call through Wasm import 23ms +1ms (5%) 🔍
Serialization/JavaScript function call through Wasm import with int 19ms -3ms (15%) 👏
View Unchanged
Test name Duration Change
Serialization/JavaScript function call from Swift 120ms -1ms
Serialization/Swift Int to JavaScript with assignment 322ms -4ms (1%)
Serialization/Swift Int to JavaScript with call 955ms +15ms (1%)
Serialization/JavaScript Number to Swift Int 258ms -1ms
Serialization/Swift String to JavaScript with assignment 406ms -0ms
Serialization/Swift String to JavaScript with call 1,035ms +7ms (0%)
Serialization/JavaScript String to Swift String 3,590ms +34ms (0%)
Object heap/Increment and decrement RC 2,795ms -6ms (0%)
View Baselines
Test name Duration
Serialization/Call JavaScript function directly 9ms
Serialization/Assign JavaScript number directly 7ms
Serialization/Call with JavaScript number directly 6ms
Serialization/Write JavaScript string directly 6ms
Serialization/Call with JavaScript string directly 6ms

If we pass `-c release` as `swift package` option, command plugins
will also be built in release configuration, which is not what we
want.
@kateinoigakukun kateinoigakukun marked this pull request as ready for review March 24, 2025 02:02
@kateinoigakukun kateinoigakukun merged commit 24f1c4c into main Mar 24, 2025
6 checks passed
@kateinoigakukun kateinoigakukun deleted the yt/configuration-option branch March 24, 2025 02:02
kateinoigakukun added a commit that referenced this pull request Mar 26, 2025
#309 introduced `-c`
option to the plugin side in addition to the `swift package`'s one.
However `swift package -c release js` was building with release config
before 0.25.0 but it started to build with debug config as the default
in 0.25.0. This change makes the plugin to respect the `swift package`'s
one if `-c` is not specified after `js` plugin name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /