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

Is our TinyCC build on Windows setting `-march` correctly? #10856

Closed Jarred-Sumner closed 1 week ago

Jarred-Sumner commented 1 week ago

Where are we setting C flags when building TinyCC? How are we making sure that baseline builds are working correctly with TinyCC?

https://github.com/oven-sh/bun/blob/830af23742c957296db4cd7a5ffe25c1bac143db/scripts/build-tinycc.ps1#L20-L25

It feels highly suspicious that so many of the "Illegal instruction" errors include a stack trace that points to TinyCC. Either something is going wrong while generating the stacktrace, or something is wrong with the TinyCC build.

Related issues:

jexroid commented 1 week ago

will this problem fixed in the next version?