oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
71.09k stars 2.47k forks source link

fix(windows): build all dependencies with proper cpu target #10884

Closed paperdave closed 1 week ago

paperdave commented 1 week ago

What does this PR do?

Fixes #10856 Fixes #10435 Fixes #10460 Fixes #10545 Fixes #10546 Fixes #10547 Fixes #10578 Fixes #10583 Fixes #10615 Fixes #10629 Fixes #10700 Fixes #10755 Fixes #10756 For #10788, this will resolve their third point. Fixes #10790 Fixes #10798 Fixes #10841 Fixes #10853

Besides 10788, all of the above are the same exact issue report.

What went wrong is when compiling dependencies is the logic in every dependency script is

. (Join-Path $PSScriptRoot "env.ps1")

This overrides the baseline state of the shell to haswell, which will unintentionally compile newer code for older cpus.

We also never even tried compiling tcc correctly. The proper flags are added.

When using SDE, I noticed a very odd failure reported in WTF::initialize, which names the current thread. This applies for any JS entrypoint, which is different from the mostly install-related ones above (makes sense, since libarchive is a notable dependency, while the js runtime in general is mostly just JSC + our own code + simdutf). I dont think the change in JSC is significant but it is definetly on the safer side to do this.

github-actions[bot] commented 1 week ago

❌ @paperdave, your commit has failing tests :(

ο£ΏπŸ’ͺ 2 failing tests Darwin AARCH64

ο£ΏπŸ’» 2 failing tests Darwin x64 baseline

ο£ΏπŸ’» 3 failing tests Darwin x64

🐧πŸ–₯ 1 failing tests Linux x64 baseline

πŸͺŸπŸ’» 12 failing tests Windows x64 baseline

πŸͺŸπŸ’» 8 failing tests Windows x64

View logs