swig / cccl

Unix cc compiler to Microsoft's cl compiler wrapper
GNU General Public License v3.0
123 stars 36 forks source link

Add "dumpmachine"/"dumpmachinefull" arguments to get the target machine triplet ("dumpmachinefull" for the full MSVC version). #14

Closed falhumai96 closed 2 years ago

falhumai96 commented 2 years ago

Add two new command-line arguments to get the target machine's triplet, by parsing the command-line output of cl:

These arguments precede any other arguments passed to cccl, and if dumpmachine/dumpmachinefull is processed, it will print the target triplet and exit succefully (the first of dumpmachine or dumpmachinefull will be processed).

wsfulton commented 2 years ago

This patch needs documenting with the added options like all the other options are documented. Can you point me to some cc compiler that implements -dumpmachinefull?

falhumai96 commented 2 years ago

This patch needs documenting with the added options like all the other options are documented. Can you point me to some cc compiler that implements -dumpmachinefull?

I don't think there is a cc-like compiler frontend that has dumpmachinefull. I just added it to have more info on the MSVC version.

But, you are right. I need to add documentation to the code.