Skip to content

Instantly share code, notes, and snippets.

@thomcc
Created December 8, 2021 10:13
Show Gist options
  • Save thomcc/766d76e4da35ce1a73b93ccd548fd143 to your computer and use it in GitHub Desktop.
Save thomcc/766d76e4da35ce1a73b93ccd548fd143 to your computer and use it in GitHub Desktop.
Targets without `cfg(target_thread_local)`

Targets without static thread local

  • aarch64-apple-ios
  • aarch64-apple-ios-macabi
  • aarch64-apple-ios-sim
  • aarch64-apple-tvos
  • aarch64-linux-android
  • aarch64-unknown-freebsd
  • aarch64-unknown-netbsd
  • aarch64-unknown-none
  • aarch64-unknown-none-softfloat
  • aarch64-unknown-openbsd
  • aarch64-unknown-uefi
  • arm-linux-androideabi
  • armebv7r-none-eabi
  • armebv7r-none-eabihf
  • armv6-unknown-freebsd
  • armv6-unknown-netbsd-eabihf
  • armv6k-nintendo-3ds
  • armv7-apple-ios
  • armv7-linux-androideabi
  • armv7-unknown-freebsd
  • armv7-unknown-netbsd-eabihf
  • armv7a-none-eabi
  • armv7a-none-eabihf
  • armv7r-none-eabi
  • armv7r-none-eabihf
  • armv7s-apple-ios
  • avr-unknown-gnu-atmega328
  • bpfeb-unknown-none
  • bpfel-unknown-none
  • i386-apple-ios
  • i586-pc-windows-msvc
  • i686-linux-android
  • i686-pc-windows-gnu
  • i686-pc-windows-msvc
  • i686-unknown-freebsd
  • i686-unknown-haiku
  • i686-unknown-netbsd
  • i686-unknown-openbsd
  • i686-unknown-uefi
  • i686-uwp-windows-gnu
  • mipsel-sony-psp
  • mipsel-unknown-none
  • msp430-none-elf
  • nvptx64-nvidia-cuda
  • powerpc-unknown-freebsd
  • powerpc-unknown-netbsd
  • powerpc-unknown-openbsd
  • powerpc64-unknown-freebsd
  • powerpc64le-unknown-freebsd
  • riscv32i-unknown-none-elf
  • riscv32imac-unknown-none-elf
  • riscv32imc-esp-espidf
  • riscv32imc-unknown-none-elf
  • riscv64gc-unknown-none-elf
  • riscv64imac-unknown-none-elf
  • sparc64-unknown-netbsd
  • sparc64-unknown-openbsd
  • sparcv9-sun-solaris
  • thumbv4t-none-eabi
  • thumbv6m-none-eabi
  • thumbv7a-pc-windows-msvc
  • thumbv7em-none-eabi
  • thumbv7em-none-eabihf
  • thumbv7m-none-eabi
  • thumbv7neon-linux-androideabi
  • thumbv8m.base-none-eabi
  • thumbv8m.main-none-eabi
  • thumbv8m.main-none-eabihf
  • x86_64-apple-ios
  • x86_64-apple-ios-macabi
  • x86_64-apple-tvos
  • x86_64-fortanix-unknown-sgx
  • x86_64-linux-android
  • x86_64-pc-solaris
  • x86_64-pc-windows-gnu
  • x86_64-sun-solaris
  • x86_64-unknown-dragonfly
  • x86_64-unknown-freebsd
  • x86_64-unknown-haiku
  • x86_64-unknown-illumos
  • x86_64-unknown-l4re-uclibc
  • x86_64-unknown-linux-gnux32
  • x86_64-unknown-netbsd
  • x86_64-unknown-none
  • x86_64-unknown-none-hermitkernel
  • x86_64-unknown-none-linuxkernel
  • x86_64-unknown-openbsd
  • x86_64-unknown-uefi

Script Used (fish-shell)

for targ in (rustc --print target-list)
  set -l cfg (rustc --print cfg --target=$targ)
  if not string match -q 'target_thread_local' -- $cfg;
    echo "$targ";
  end
end
$ rustc -vV
rustc 1.59.0-nightly (efec54529 2021-12-04)
binary: rustc
commit-hash: efec545293b9263be9edfb283a7aa66350b3acbf
commit-date: 2021-12-04
host: x86_64-apple-darwin
release: 1.59.0-nightly
LLVM version: 13.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment