Giter Club home page Giter Club logo

Comments (3)

link2xt avatar link2xt commented on May 23, 2024 1

That change was reverted in ziglang/zig#13460?

No, it does not fully revert the change. I think this is why it says "not arch" in the title.
The output of zig targets for me looks like this:

{
 "arch": [
  "arm",
  "armeb",
  "aarch64",
  "aarch64_be",
  "aarch64_32",
  "arc",
  "avr",
  "bpfel",
  "bpfeb",
  "csky",
  "dxil",
  "hexagon",
  "loongarch32",
  "loongarch64",
  "m68k",
  "mips",
  "mipsel",
  "mips64",
  "mips64el",
  "msp430",
  "powerpc",
  "powerpcle",
  "powerpc64",
  "powerpc64le",
  "r600",
  "amdgcn",
  "riscv32",
  "riscv64",
  "sparc",
  "sparc64",
  "sparcel",
  "s390x",
  "tce",
  "tcele",
  "thumb",
  "thumbeb",
  "x86",
  "x86_64",
  "xcore",
  "nvptx",
  "nvptx64",
  "le32",
  "le64",
  "amdil",
  "amdil64",
  "hsail",
  "hsail64",
  "spir",
  "spir64",
  "spirv32",
  "spirv64",
  "kalimba",
  "shave",
  "lanai",
  "wasm32",
  "wasm64",
  "renderscript32",
  "renderscript64",
  "ve",
  "spu_2"
 ],
 "os": [
...

There is no i386 architecture, the architecture (first word in the target triple) is named x86 now, but it was named i386 in zig 0.10.

from cargo-zigbuild.

messense avatar messense commented on May 23, 2024

That change was reverted in ziglang/zig#13460?

from cargo-zigbuild.

link2xt avatar link2xt commented on May 23, 2024

In cpus section there are many CPUs defined, including:

   "i386": [
    "slow_unaligned_mem_16",
    "vzeroupper",
    "x87"
   ],
   "i486": [
    "slow_unaligned_mem_16",
    "vzeroupper",
    "x87"
   ],
   "i586": [
    "cx8",
    "slow_unaligned_mem_16",
    "vzeroupper",
    "x87"
   ],
   "i686": [
    "cmov",
    "cx8",
    "slow_unaligned_mem_16",
    "vzeroupper",
    "x87"
   ],

This is what goes into -mcpu flag as far as I understand.

from cargo-zigbuild.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.