asvitkine / ccons

Interactive Console for the C Programming Language
MIT License
66 stars 10 forks source link

llvm-config --host-target is not compatible with clang -march #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I noticed that you are using the first part of `llvm-config --host-target`
to determine the desired -march to run clang with. On amd64 machines
`llvm-config --host-target` will return "x86_64-pc-linux-gnu", but clang
will expect -march to be "x86-64".

This can be fixed by piping `llvm-config --host-target` through a sed
command: `sed -e s/_/-/`.

Original issue reported on code.google.com by postmode...@gmail.com on 2 Mar 2010 at 9:51

GoogleCodeExporter commented 9 years ago
I forgot to mention I am using LLVM 2.6 and clang 1.0 on Gentoo Linux amd64.

Attached is a patch against r196.

Original comment by postmode...@gmail.com on 2 Mar 2010 at 9:58

Attachments: