We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9b9c17 commit 5238d17Copy full SHA for 5238d17
1 file changed
src/tools/miri/src/shims/tls.rs
@@ -240,7 +240,7 @@ impl TlsDtorsState {
240
match &mut self.0 {
241
Init => {
242
match this.tcx.sess.target.os.as_ref() {
243
- "linux" => {
+ "linux" | "freebsd" | "android" => {
244
// Run the pthread dtors.
245
self.0 = PthreadDtors(Default::default());
246
}
@@ -257,10 +257,16 @@ impl TlsDtorsState {
257
// And move to the final state.
258
self.0 = Done;
259
260
- _ => {
261
- // No TLS support for this platform, directly move to final state.
+ "wasi" | "none" => {
+ // No OS, no TLS dtors.
262
+ // FIXME: should we do something on wasi?
263
264
265
+ os => {
266
+ throw_unsup_format!(
267
+ "the TLS machinery does not know how to handle OS `{os}`"
268
+ );
269
+ }
270
271
272
PthreadDtors(state) => {
0 commit comments