Skip to content
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

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

Merged
merged 8 commits into from
May 8, 2024

Conversation

paperdave
Copy link
Collaborator

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.

@paperdave paperdave changed the title probably fix baseline fix(windows): build all dependencies with proper cpu target May 7, 2024
Copy link

github-actions bot commented May 7, 2024

@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

src/output.zig Outdated
@@ -16,7 +16,7 @@ const SystemTimer = @import("./system_timer.zig").Timer;

// These are threadlocal so we don't have stdout/stderr writing on top of each other
threadlocal var source: Source = undefined;
threadlocal var source_set: bool = false;
pub threadlocal var source_set: bool = false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this need to be pub?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the goal was to make crash_handler not use output if the source was not set, but i didn't keep that behavior.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay so can we remove this change?

@paperdave paperdave merged commit 4c0d69a into main May 8, 2024
39 of 52 checks passed
@paperdave paperdave deleted the dave/baseline-fixes branch May 8, 2024 00:36
@dylan-conway dylan-conway mentioned this pull request May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants