[llvm-bugs] [Bug 24979] New: llvm-config does not take target compiler into account
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 28 14:31:57 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24979
Bug ID: 24979
Summary: llvm-config does not take target compiler into account
Product: tools
Version: 3.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: llvm-config
Assignee: unassignedbugs at nondot.org
Reporter: simonas+llvm.org at kazlauskas.me
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
llvm-config emits flags for the compiler it was built with, rather than the
compiler the flags will be used with.
On my system `llvm-config --cxxflags` emits following flags for g++:
`-I/usr/include -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
--param=ssp-buffer-size=4 -fPIC -fvisibility-inlines-hidden -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wnon-virtual-dtor -Wno-comment -std=c++11
-ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions
-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS`
Which appended to
`clang++ -Werror`
cause a compilation…
`error: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Werror,-Wunknown-warning-option]`
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150928/cec57581/attachment.html>
More information about the llvm-bugs
mailing list