Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jun 29, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 2 Mar 2010 at 9:51

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 2 Mar 2010 at 9:58

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant